File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ class Config:
13
13
"""Generic Config class to pull environment vars."""
14
14
15
15
if os .environ .get ("DOCKER" ):
16
+ SPOTIPLEX_VERSION = os .environ .get ("COMMIT_SHA" )
16
17
SPOTIFY_API_KEY = os .environ .get ("SPOTIFY_API_KEY" )
17
18
SPOTIFY_API_ID = os .environ .get ("SPOTIFY_API_ID" )
18
19
Original file line number Diff line number Diff line change 7
7
8
8
import spotiplex .modules .confighandler .main as config_handler
9
9
import spotiplex .modules .spotiplex .main as sp_module
10
+ from spotiplex .config import Config
10
11
11
12
logger .trace ("Initializing logger..." )
12
13
logger .remove ()
20
21
@app .command ()
21
22
def sync_lidarr_imports () -> None :
22
23
"""Syncs all playlists currently being pulled via Lidarr."""
24
+ logger .debug ("We are running on commit: " , Config .SPOTIPLEX_VERSION )
23
25
sp_instance = sp_module .Spotiplex (lidarr = True , playlist_id = None )
24
26
sp_instance .run ()
25
27
@@ -34,6 +36,7 @@ def generate_env() -> None:
34
36
@app .command ()
35
37
def sync_manual_lists () -> None :
36
38
"""Syncs all playlists specified in config file."""
39
+ logger .debug ("We are running on commit: " , Config .SPOTIPLEX_VERSION )
37
40
sp_instance = sp_module .Spotiplex (lidarr = False , playlist_id = None )
38
41
sp_instance .run ()
39
42
You can’t perform that action at this time.
0 commit comments