Plex 1.0.3

This commit is contained in:
VineFeeder
2025-09-15 10:57:01 +01:00
parent 800ad52c01
commit bba16b27b9
3 changed files with 32 additions and 23 deletions
@@ -73,7 +73,6 @@ class ItvxLoader(BaseLoader):
# ALTERNATIVES BELOW FROM POP-UP MENU
elif inx == 0:
# from greedy-search OR selecting Browse-category
# example: https://www.channel4.com/programmes/the-great-british-bake-off/on-demand/75228-001
# need a search keyword(s) from url
# split and select series name
@@ -208,7 +208,7 @@ class PlexLoader(BaseLoader):
return int(m.group()) if m else default
seasons = sorted({p.strip().lower() for p in parts}, key=season_num)
self.clear_series_data() # safely remove any leftovers
self.clear_series_data() # safely remove any leftovers ready for building
for item in seasons:
url = f"https://watch.plex.tv/show/{selected.lower().replace(' ','-')}/season/{item.split(' ')[1]}"
html_bytes = self.get_data(url=url, headers=headers)
@@ -231,7 +231,7 @@ class PlexLoader(BaseLoader):
"synopsis": rinse(synopsis) or None,
}
self.add_episode(selected, episode)
#print(selected, episode)
except Exception as e:
print(f"No valid data at {url} found.\n Exiting {e}")