Skip to content

Commit

Permalink
Merge pull request #777 from glensc/770-skip-xmltv
Browse files Browse the repository at this point in the history
Feature: Skip livetv events from watch command
  • Loading branch information
glensc authored Jan 17, 2024
2 parents 8b4ce89 + c991db4 commit 34679ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plextraktsync/media/MediaFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def resolve_any(self, pm: PlexLibraryItem, show: Media = None) -> Media | None:
return None

def resolve_guid(self, guid: PlexGuid, show: Media = None):
if guid.provider in ["youtube"]:
if guid.provider in ["youtube", "xmltv"]:
logger.debug(f"{guid.title_link}: Skipping {guid} because unsupported provider '{guid.provider}'", extra={"markup": True})
return None

Expand Down
1 change: 1 addition & 0 deletions plextraktsync/plex/PlexGuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def provider(self):
return "imdb"
x = self.guid.split("://")[0]
x = x.replace("com.plexapp.agents.", "")
x = x.replace("tv.plex.xmltv", "xmltv")
x = x.replace("tv.plex.agents.", "")
x = x.replace("themoviedb", "tmdb")
x = x.replace("thetvdb", "tvdb")
Expand Down

0 comments on commit 34679ed

Please sign in to comment.