mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
Restyled by isort
This commit is contained in:
committed by
Mungai Geoffrey
parent
076f42b81f
commit
3a699365c8
@@ -2,14 +2,12 @@
|
||||
Contains all the folder routes.
|
||||
"""
|
||||
|
||||
from app import helpers
|
||||
import datetime
|
||||
import os
|
||||
from flask import Blueprint, request
|
||||
|
||||
from app import api
|
||||
from app import settings
|
||||
from app import api, helpers, settings
|
||||
from app.lib import folderslib
|
||||
from flask import Blueprint, request
|
||||
|
||||
folder_bp = Blueprint("folder", __name__, url_prefix="/")
|
||||
|
||||
|
||||
@@ -2,10 +2,9 @@
|
||||
Contains all the track routes.
|
||||
"""
|
||||
|
||||
from app import api, instances
|
||||
from flask import Blueprint, send_file
|
||||
|
||||
from app import instances, api
|
||||
|
||||
track_bp = Blueprint("track", __name__, url_prefix="/")
|
||||
|
||||
|
||||
|
||||
+10
-14
@@ -2,29 +2,25 @@
|
||||
This module contains functions for the server
|
||||
"""
|
||||
|
||||
import time
|
||||
import os
|
||||
from io import BytesIO
|
||||
import random
|
||||
import datetime
|
||||
from typing import List
|
||||
import mutagen
|
||||
import os
|
||||
import random
|
||||
import time
|
||||
import urllib
|
||||
from io import BytesIO
|
||||
from typing import List
|
||||
|
||||
import mutagen
|
||||
import requests
|
||||
from mutagen.flac import MutagenError
|
||||
from app import api, helpers, instances, models, settings
|
||||
from app.lib import albumslib, folderslib, playlistlib, watchdoge
|
||||
from mutagen.flac import FLAC, MutagenError
|
||||
from mutagen.id3 import ID3
|
||||
from mutagen.flac import FLAC
|
||||
from progress.bar import Bar
|
||||
from PIL import Image
|
||||
from progress.bar import Bar
|
||||
|
||||
# from pprint import pprint
|
||||
|
||||
from app import helpers
|
||||
from app import instances
|
||||
from app import settings, models
|
||||
from app import api
|
||||
from app.lib import watchdoge, folderslib, playlistlib, albumslib
|
||||
|
||||
|
||||
@helpers.background
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
This library contains all the functions related to albums.
|
||||
"""
|
||||
|
||||
from pprint import pprint
|
||||
import urllib
|
||||
from pprint import pprint
|
||||
from typing import List
|
||||
from app import models, functions
|
||||
|
||||
from app import api, functions, models
|
||||
from app.lib import trackslib
|
||||
from app import api
|
||||
|
||||
|
||||
def create_everything() -> List[models.Track]:
|
||||
|
||||
@@ -4,10 +4,10 @@ This library contains all the functions related to tracks.
|
||||
|
||||
import os
|
||||
from typing import List
|
||||
from app import models, instances
|
||||
from app.lib import albumslib
|
||||
|
||||
from app import api, instances, models
|
||||
from app.helpers import remove_duplicates
|
||||
from app import api
|
||||
from app.lib import albumslib
|
||||
from progress.bar import Bar
|
||||
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ Contains the functions to prepare the server for use.
|
||||
|
||||
|
||||
import os
|
||||
|
||||
from app import settings
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user