mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Convert to relation tables to support multiple providers for each vod.
This commit is contained in:
parent
44a2cf518c
commit
0e388968c4
14 changed files with 1429 additions and 955 deletions
|
|
@ -370,6 +370,14 @@ class Client:
|
|||
"""Get the playback URL for a VOD"""
|
||||
return f"{self.server_url}/movie/{self.username}/{self.password}/{vod_id}.{container_extension}"
|
||||
|
||||
def get_movie_stream_url(self, vod_id, container_extension="mp4"):
|
||||
"""Get the playback URL for a movie (alias for get_vod_stream_url)"""
|
||||
return self.get_vod_stream_url(vod_id, container_extension)
|
||||
|
||||
def get_episode_stream_url(self, episode_id, container_extension="mp4"):
|
||||
"""Get the playback URL for an episode"""
|
||||
return f"{self.server_url}/series/{self.username}/{self.password}/{episode_id}.{container_extension}"
|
||||
|
||||
def close(self):
|
||||
"""Close the session and cleanup resources"""
|
||||
if hasattr(self, 'session') and self.session:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue