File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,11 +96,7 @@ def media_posters(
9696 except ServiceError as err :
9797 LOGGER .error ("[%s] %s" , type (service ).__name__ , err )
9898 continue
99- CONSOLE .rule (
100- rf"[{ idx } /{ url_count } ] { entry .display_name } \[tmdb-{ tmdb_id } ]" ,
101- align = "left" ,
102- style = "subtitle" ,
103- )
99+ CONSOLE .print (rf"[{ idx } /{ url_count } ] { entry .display_name } \[tmdb-{ tmdb_id } ]" )
104100 with CONSOLE .status (r"\[Mediux] Searching for new Sets" ):
105101 try :
106102 set_list = mediux .list_sets (
Original file line number Diff line number Diff line change @@ -94,11 +94,7 @@ def set_posters(
9494 if not media_type or not tmdb_id :
9595 LOGGER .warning ("[Mediux] Unable to determine media type for set id: %d" , set_id )
9696 continue
97- CONSOLE .rule (
98- rf"[{ idx } /{ url_count } ] { set_data .set_title } \[tmdb-{ tmdb_id } ]" ,
99- align = "left" ,
100- style = "subtitle" ,
101- )
97+ CONSOLE .print (rf"[{ idx } /{ url_count } ] { set_data .set_title } \[tmdb-{ tmdb_id } ]" )
10298 with CONSOLE .status (rf"\[{ type (service ).__name__ } ] Searching for TMDB id: { tmdb_id } " ):
10399 try :
104100 entry = service .get (media_type = media_type , tmdb_id = tmdb_id )
Original file line number Diff line number Diff line change @@ -108,10 +108,8 @@ def sync_posters(
108108 continue
109109 entry_count = len (entries )
110110 for idx , entry in enumerate (entries , start = 1 ):
111- CONSOLE .rule (
112- rf"[{ idx } /{ entry_count } ] { entry .display_name } \[tmdb-{ entry .tmdb_id } ]" ,
113- align = "left" ,
114- style = "subtitle" ,
111+ CONSOLE .print (
112+ rf"[{ idx } /{ entry_count } ] { entry .display_name } \[tmdb-{ entry .tmdb_id } ]"
115113 )
116114 with CONSOLE .status (r"\[Mediux] Searching for new Sets" ):
117115 try :
Original file line number Diff line number Diff line change 66CONSOLE = Console (
77 theme = Theme (
88 {
9- "prompt" : "green" ,
10- "prompt.border" : "dim green" ,
11- "prompt.choices" : "white" ,
12- "prompt.default" : "dim white" ,
13- "title" : "magenta" ,
14- "title.border" : "dim magenta" ,
15- "subtitle" : "blue" ,
16- "subtitle.border" : "dim blue" ,
17- "syntax.border" : "dim cyan" ,
9+ "title" : "#4682B4" ,
1810 "logging.level.debug" : "dim white" ,
1911 "logging.level.info" : "white" ,
2012 "logging.level.warning" : "yellow" ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class Jellyfin(SettingsModel):
3131
3232
3333class Mediux (SettingsModel ):
34- base_url : str = "https://api .mediux.pro "
34+ base_url : str = "https://images .mediux.io "
3535 token : Annotated [str | None , BeforeValidator (blank_is_none )] = None
3636
3737
You can’t perform that action at this time.
0 commit comments