non-working solution
This commit is contained in:
parent
88d1f94748
commit
06fe6d2589
2 changed files with 15 additions and 12 deletions
|
|
@ -1,10 +1,11 @@
|
||||||
# lastfm_helpers.py
|
# lastfm_helpers.py
|
||||||
|
|
||||||
import pylast
|
import pylast
|
||||||
from config import (
|
#from config import (
|
||||||
LASTFM_API_KEY, LASTFM_API_SECRET, LASTFM_USERNAME,
|
# LASTFM_API_KEY, LASTFM_API_SECRET, LASTFM_USERNAME,
|
||||||
MIN_PLAYS, RECENT_MONTHS
|
# MIN_PLAYS, RECENT_MONTHS
|
||||||
)
|
#)
|
||||||
|
from config import *
|
||||||
import logging
|
import logging
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
# plex_playlist_sync.py
|
# plex_playlist_sync.py
|
||||||
|
|
||||||
from config import (
|
#from config import (
|
||||||
LASTFM_API_KEY, LASTFM_API_SECRET, LASTFM_USERNAME,
|
# LASTFM_API_KEY, LASTFM_API_SECRET, LASTFM_USERNAME,
|
||||||
PLEX_BASEURL, PLEX_TOKEN,
|
# PLEX_BASEURL, PLEX_TOKEN,
|
||||||
MIN_PLAYS, RECENT_MONTHS, MAX_SIMILAR_PER_ART, SIMILAR_MATCH_MIN,
|
# MIN_PLAYS, RECENT_MONTHS, MAX_SIMILAR_PER_ART, SIMILAR_MATCH_MIN,
|
||||||
CACHE_TTL_HOURS, DEBUG_PRINT
|
# CACHE_TTL_HOURS, DEBUG_PRINT
|
||||||
)
|
#)
|
||||||
|
from config import *
|
||||||
|
|
||||||
# Importera relevanta funktioner från lastfm_helpers
|
# Importera relevanta funktioner från lastfm_helpers
|
||||||
from lastfm_helpers import recent_artists, get_artist_top_tracks
|
from lastfm_helpers import recent_artists, get_artist_top_tracks
|
||||||
from musicbrainz_helpers import load_cache, save_cache # Används för cache
|
from musicbrainz_helpers import load_cache, save_cache # Används för cache
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue