File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 10
10
from yt_dlp import YoutubeDL
11
11
12
12
# Environment variables
13
- USERNAME = os .getenv ('LASTFM_USERNAME' , 'your_lastfm_username' )
14
13
API_KEY = os .getenv ('LASTFM_API_KEY' , 'your_lastfm_api_key' )
14
+ USERNAME = os .getenv ('LASTFM_USERNAME' , 'your_lastfm_username' )
15
+ DOWNLOAD_PATH = os .getenv ('DOWNLOAD_PATH' , '/downloads' )
16
+ APP_DATA_PATH = os .getenv ('APP_DATA_PATH' , '/appdata' )
15
17
POLLING_INTERVAL = int (os .getenv ('POLLING_INTERVAL' , '300' )) # Default to 300 seconds (5 minutes)
16
- DOWNLOAD_PATH = '/downloads' # Hardcoded path
17
- APP_DATA_PATH = '/appdata' # Hardcoded path
18
18
19
19
LASTFM_URL = f'http://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user={ USERNAME } &api_key={ API_KEY } &format=json'
20
20
LASTFM_TRACK_INFO_URL = f'http://ws.audioscrobbler.com/2.0/?method=track.getInfo&api_key={ API_KEY } &format=json&artist={{artist}}&track={{track}}'
You can’t perform that action at this time.
0 commit comments