process albums seperate from tracks

- break populate function into 2
This commit is contained in:
geoffrey45
2022-06-19 14:45:25 +03:00
parent 06ed41d869
commit 3cf44759b5
11 changed files with 100 additions and 220 deletions
+3 -9
View File
@@ -6,16 +6,14 @@ import time
from io import BytesIO
import requests
from app import api
from app import helpers
from app import settings
from app.lib import watchdoge
from app.lib.populate import Populate
from app.lib.populate import Populate, CreateAlbums
from PIL import Image
from concurrent.futures import ThreadPoolExecutor
from app.lib import trackslib
from app import instances, models
@helpers.background
@@ -27,7 +25,8 @@ def reindex_tracks():
while True:
trackslib.validate_tracks()
populate()
Populate()
CreateAlbums()
CheckArtistImages()()
time.sleep(60)
@@ -41,11 +40,6 @@ def start_watchdog():
watchdoge.watch.run()
def populate():
pop = Populate()
pop.run()
class getArtistImage:
"""
Returns an artist image url.