PlexTraktSync: Different ordering between Plex and Trakt still not working
Confirmation
- I have read the README.md on the project homepage
- I have checked if identical issue already exists
The problem
The problem that I’m currently facing was already mentioned in https://github.com/Taxel/PlexTraktSync/issues/914, where it was also marked as solved thank to https://github.com/Taxel/PlexTraktSync/pull/993. Sadly, I’m still facing the same issue, it seems like either https://github.com/Taxel/PlexTraktSync/pull/993 is not completely working, or maybe I’m doing something wrong. I have tested it with a Bleach episode and when I inspect the episode, I get the following warning (complete trace bellow): WARNING Episode:1756:Bleach-s17e02: Skipping PlexGuid:local://1756 because provider local has no external Id
But when I try to sync it individually with the --id argument, I get an error (also bellow).
Error trace / logs
tus@tus:~$ plextraktsync inspect 1756
PlexTraktSync [0.22.3]
Inspecting 1756: <local:1756:Episode:1756:Bleach-s17e02>
URL: -
Title: Episode 2
Media.Duration: 00:24:36
Media.Type: 'episode'
Media.Guid: 'local://1756'
Audio: 'stereo', '日本語 (AAC Stereo)'
Video: 'h264'
Subtitles:
Subtitle 1: (English) None (codec: srt, selected: True, transient: None)
Subtitle 2: (Español) None (codec: srt, selected: False, transient: None)
Subtitle 3: (Português) None (codec: srt, selected: False, transient: None)
Parts:
Part 1: d=682462;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkv/mnt/cloud/Series/Bleac
h/d=72372;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkvSeasond=555310;file://%2Fmnt%2Fc
loud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkv d=301757;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+
17%2FBleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkv17d=555310;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17E02.Thousand-Yea
r.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkv/Bleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.d=301757;file://%2Fmnt%2Fcloud%2FSeries%2F
Bleach%2FSeason+17%2FBleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkv0.d=555310;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17
E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkvH.d=301757;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17E02.Thousand-Year.Blood.War.Fou
ndation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkv264d=555310;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-
DL.AAC2.0.H.264-NTb.mkv-NTb.mkv
Guids:
Guid: <PlexGuid:local://1756>, Id: 1756, Provider: 'local'
Metadata: {'collected_at': '2022-10-17:T15:37:27.000Z', 'media_type': 'digital', 'resolution': 'hd_1080p', 'audio': 'aac', 'audio_channels': '2.0'}
WARNING <Episode:1756:Bleach-s17e02>: Skipping <PlexGuid:local://1756> because provider local has no external Id
========================================================================================
tus@tus:~$ plextraktsync sync --id 1756
INFO PlexTraktSync [0.22.3]
INFO Sync Episodes: [<Episode:1756:Bleach-s17e02>]
Traceback (most recent call last):
File "/home/tus/.local/bin/plextraktsync", line 8, in <module>
sys.exit(cli())
File "/home/tus/.local/pipx/venvs/plextraktsync/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/tus/.local/pipx/venvs/plextraktsync/lib/python3.8/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/tus/.local/pipx/venvs/plextraktsync/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/tus/.local/pipx/venvs/plextraktsync/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/tus/.local/pipx/venvs/plextraktsync/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/tus/.local/pipx/venvs/plextraktsync/lib/python3.8/site-packages/plextraktsync/cli.py", line 28, in wrap
cmd(*args, **kwargs)
File "/home/tus/.local/pipx/venvs/plextraktsync/lib/python3.8/site-packages/plextraktsync/commands/sync.py", line 58, in sync
runner.sync(walker=w, dry_run=config.dry_run)
File "/home/tus/.local/pipx/venvs/plextraktsync/lib/python3.8/site-packages/plextraktsync/sync.py", line 94, in sync
for episode in walker.find_episodes():
File "/home/tus/.local/pipx/venvs/plextraktsync/lib/python3.8/site-packages/plextraktsync/walker.py", line 263, in find_episodes
yield from self.get_plex_episodes(self.plan.episodes)
File "/home/tus/.local/pipx/venvs/plextraktsync/lib/python3.8/site-packages/plextraktsync/walker.py", line 280, in get_plex_episodes
show = self.mf.resolve_guid(guid)
File "/home/tus/.local/pipx/venvs/plextraktsync/lib/python3.8/site-packages/plextraktsync/media.py", line 199, in resolve_guid
f"{guid.pm.item}: Unable to parse a valid provider from guid {guid}"
AttributeError: 'NoneType' object has no attribute 'item'
Processing episodes 0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0/1 [ 0:00:00 < -:--:-- , ? it/s ]
Expected behavior
Map the episode id to the trakt episode id
Steps to reproduce the behavior
- plextraktsync inspect 1756
- plextraktsync sync --id 1756
Inspect of problematic items
tus@tus:~$ plextraktsync inspect 1756
PlexTraktSync [0.22.3]
Inspecting 1756: <local:1756:Episode:1756:Bleach-s17e02>
URL: -
Title: Episode 2
Media.Duration: 00:24:36
Media.Type: 'episode'
Media.Guid: 'local://1756'
Audio: 'stereo', '日本語 (AAC Stereo)'
Video: 'h264'
Subtitles:
Subtitle 1: (English) None (codec: srt, selected: True, transient: None)
Subtitle 2: (Español) None (codec: srt, selected: False, transient: None)
Subtitle 3: (Português) None (codec: srt, selected: False, transient: None)
Parts:
Part 1: d=682462;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkv/mnt/cloud/Series/Bleac
h/d=72372;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkvSeasond=555310;file://%2Fmnt%2Fc
loud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkv d=301757;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+
17%2FBleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkv17d=555310;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17E02.Thousand-Yea
r.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkv/Bleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.d=301757;file://%2Fmnt%2Fcloud%2FSeries%2F
Bleach%2FSeason+17%2FBleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkv0.d=555310;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17
E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkvH.d=301757;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17E02.Thousand-Year.Blood.War.Fou
ndation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkv264d=555310;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-
DL.AAC2.0.H.264-NTb.mkv-NTb.mkv
Guids:
Guid: <PlexGuid:local://1756>, Id: 1756, Provider: 'local'
Metadata: {'collected_at': '2022-10-17:T15:37:27.000Z', 'media_type': 'digital', 'resolution': 'hd_1080p', 'audio': 'aac', 'audio_channels': '2.0'}
WARNING <Episode:1756:Bleach-s17e02>: Skipping <PlexGuid:local://1756> because provider local has no external Id
Workarounds
None
Install method
pipx (Recommended)
Version
0.22.3
Python Version
3.8.10
Operating System and Version
Ubuntu Server 20.04
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19
Commits related to this issue
- remove media.show and use more precise trakt.show_id instead (#1111) — committed to simonc56/PlexTraktSync by simonc56 2 years ago
- remove media.show and use more precise trakt.show_id instead (#1111) — committed to simonc56/PlexTraktSync by simonc56 2 years ago
What you can do to fix this :
TMDB website is just like wikipedia, anybody can add and edit to improve the database.
Will be fixed with :
The specific problem here is that episodes of one Plex show are in 2 Trakt shows.
I can reproduce the bug of wrong episodes marked as watched. I also found another bug : episodes are added to trakt collection at every sync. Still investigating…
Automatic update takes 24h :