Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different ordering between Plex and Trakt still not working #1111

Closed
2 tasks done
HoreaM opened this issue Oct 18, 2022 · 19 comments · Fixed by #1120
Closed
2 tasks done

Different ordering between Plex and Trakt still not working #1111

HoreaM opened this issue Oct 18, 2022 · 19 comments · Fixed by #1120
Assignees

Comments

@HoreaM
Copy link

HoreaM commented Oct 18, 2022

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 #914, where it was also marked as solved thank to #993.
Sadly, I'm still facing the same issue, it seems like either #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

  1. plextraktsync inspect 1756
  2. 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

@simonc56
Copy link
Collaborator

simonc56 commented Oct 18, 2022

WARNING Episode:1756:Bleach-s17e02: Skipping PlexGuid:local://1756 because provider local has no external Id

Media.Guid: 'local://1756'

That's a Plex issue.
Plex did not match this episode with a tvdb id. Try to Fix match in Plex.

'collected_at': '2022-10-17:T15:37:27.000Z'

Maybe it was collected too early for Plex. First air date is October 18, 2022 on tvdb.

@HoreaM
Copy link
Author

HoreaM commented Oct 18, 2022

Thanks for the answer.

That's a Plex issue. Plex did not match this episode with a tvdb id. Try to Fix match in Plex.

I have tried Fix matching the series, I have even manually matched it with the tvdb ID, but still have the same issue (have also tried refreshing the metadata after, same thing)

image
image

'collected_at': '2022-10-17:T15:37:27.000Z'

Maybe it was collected too early for Plex. First air date is October 18, 2022 on tvdb.

Is there a way I could recollect it? As I've said, I've already tried refreshing the metadata, but that doesn't help.

@simonc56
Copy link
Collaborator

Did you set episodes ordering to "TheTVDB (Aired)" ?
Read this reddit thread about Bleach episodes ordering in Plex.

@HoreaM
Copy link
Author

HoreaM commented Oct 18, 2022

Did you set episodes ordering to "TheTVDB (Aired)" ? Read this reddit thread about Bleach episodes ordering in Plex.

This has partially worked, thanks! I say partially, because for episode 2 it still can't map the trakt episode, but I'm guessing that happens because the trakt episode 2 does not have the TVDB id on trakt yet?

tus@tus:~$ plextraktsync inspect 1756
PlexTraktSync [0.22.3]

Inspecting 1756: <tvdb:9360908:Episode:1756:Bleach-s17e02>
URL: -
key=/library/metadata/1756
Title: Foundation Stones
Media.Duration: 00:24:36
Media.Type: 'episode'
Media.Guid: 'plex://episode/632be66cf2983c0382b89866'
Media.Guids: [<Guid:tvdb://9360908>]
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=291207;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/Bleach/d=499913;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+17%2
FBleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkvSeasond=333522;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 d=730405;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=333522;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/Bleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.d=730405;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17E02.Thousand-Year.Blood.War.Founda
tion.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkv0.d=333522;file://%2Fmnt%2Fcloud%2FSeries%2FBleach%2FSeason+17%2FBleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkvH.d=730405;file://%2Fmnt%2Fcloud%2FSeries%2FB
leach%2FSeason+17%2FBleach.S17E02.Thousand-Year.Blood.War.Foundation.Stones.1080p.DSNP.WEB-DL.AAC2.0.H.264-NTb.mkv264d=333522;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:tvdb://9360908>, Id: 9360908, Provider: 'tvdb'
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 guid <PlexGuid:tvdb://9360908> not found on Trakt          

But now I have another issue with the Top Boy series, because TVDB marks this series as having 4 seasons, but trakt divides it in two parts, first part containing the first 2 seasons and second part containing the other 2.
Because I'm using Sonarr to manage my library, it will use the TVDB structure and now I can't get it to map to trakt. Is there anything I could do? Thank you!

tus@tus:~$ plextraktsync sync --sync=shows
INFO     PlexTraktSync [0.22.3]                                                                                                                                                                                                                               
INFO     Sync Show sections: [<PlexLibrarySection:show:TV Shows>]                                                                                                                                                                                                                                                                                                                                                 
WARNING  Retry using search for specific Plex Episode tvdb://8975860                                                                                                                                                                                          
WARNING  <Episode:1697:Top-Boy-s04e01>: Skipping guid <PlexGuid:tvdb://8975860> not found on Trakt                                                                                                                                                            
WARNING  Retry using search for specific Plex Episode imdb://tt18949816                                                                                                                                                                                       
WARNING  <Episode:1697:Top-Boy-s04e01>: Skipping guid <PlexGuid:imdb://tt18949816> not found on Trakt                                                                                                                                                         
WARNING  Retry using search for specific Plex Episode tvdb://9046425                                                                                                                                                                                          
WARNING  <Episode:1698:Top-Boy-s04e02>: Skipping guid <PlexGuid:tvdb://9046425> not found on Trakt                                                                                                                                                            
WARNING  Retry using search for specific Plex Episode imdb://tt18949796                                                                                                                                                                                       
WARNING  <Episode:1698:Top-Boy-s04e02>: Skipping guid <PlexGuid:imdb://tt18949796> not found on Trakt                                                                                                                                                         
WARNING  Retry using search for specific Plex Episode tvdb://9046426                                                                                                                                                                                          
WARNING  <Episode:1699:Top-Boy-s04e03>: Skipping guid <PlexGuid:tvdb://9046426> not found on Trakt                                                                                                                                                            
WARNING  Retry using search for specific Plex Episode imdb://tt18932518                                                                                                                                                                                       
WARNING  <Episode:1699:Top-Boy-s04e03>: Skipping guid <PlexGuid:imdb://tt18932518> not found on Trakt                                                                                                                                                         
WARNING  Retry using search for specific Plex Episode tvdb://9046427                                                                                                                                                                                          
WARNING  <Episode:1700:Top-Boy-s04e04>: Skipping guid <PlexGuid:tvdb://9046427> not found on Trakt                                                                                                                                                            
WARNING  Retry using search for specific Plex Episode imdb://tt18932524                                                                                                                                                                                       
WARNING  <Episode:1700:Top-Boy-s04e04>: Skipping guid <PlexGuid:imdb://tt18932524> not found on Trakt                                                                                                                                                         
WARNING  Retry using search for specific Plex Episode tvdb://9046428                                                                                                                                                                                          
WARNING  <Episode:1701:Top-Boy-s04e05>: Skipping guid <PlexGuid:tvdb://9046428> not found on Trakt                                                                                                                                                            
WARNING  Retry using search for specific Plex Episode imdb://tt18932530                                                                                                                                                                                       
WARNING  <Episode:1701:Top-Boy-s04e05>: Skipping guid <PlexGuid:imdb://tt18932530> not found on Trakt                                                                                                                                                         
WARNING  Retry using search for specific Plex Episode tvdb://9046429                                                                                                                                                                                          
WARNING  <Episode:1702:Top-Boy-s04e06>: Skipping guid <PlexGuid:tvdb://9046429> not found on Trakt                                                                                                                                                            
WARNING  Retry using search for specific Plex Episode imdb://tt18932540                                                                                                                                                                                       
WARNING  <Episode:1702:Top-Boy-s04e06>: Skipping guid <PlexGuid:imdb://tt18932540> not found on Trakt                                                                                                                                                         
WARNING  Retry using search for specific Plex Episode tvdb://9046430                                                                                                                                                                                          
WARNING  <Episode:1703:Top-Boy-s04e07>: Skipping guid <PlexGuid:tvdb://9046430> not found on Trakt                                                                                                                                                            
WARNING  Retry using search for specific Plex Episode imdb://tt18932544                                                                                                                                                                                       
WARNING  <Episode:1703:Top-Boy-s04e07>: Skipping guid <PlexGuid:imdb://tt18932544> not found on Trakt                                                                                                                                                         
WARNING  Retry using search for specific Plex Episode tvdb://9046431                                                                                                                                                                                          
WARNING  <Episode:1704:Top-Boy-s04e08>: Skipping guid <PlexGuid:tvdb://9046431> not found on Trakt                                                                                                                                                            
WARNING  Retry using search for specific Plex Episode imdb://tt18932550                                                                                                                                                                                       
WARNING  <Episode:1704:Top-Boy-s04e08>: Skipping guid <PlexGuid:imdb://tt18932550> not found on Trakt   

@simonc56
Copy link
Collaborator

for episode 2 it still can't map the trakt episode, but I'm guessing that happens because the trakt episode 2 does not have the TVDB id on trakt yet?

Yes, this Bleach episode's ids tvdb and imdb are not yet populated in trakt database (s02e02 in ids list below).
Maybe you have to wait a sync between Plex, Trakt & Tvdb databases.
As you can see, last week's episode is ok.

{
				"season": 2,
				"number": 1,
				"title": "The Blood Warfare",
				"ids": {
					"trakt": 6483139,
					"tvdb": 9340509,
					"imdb": "tt17073864",
					"tmdb": 3754381,
					"tvrage": null
				}
			},
			{
				"season": 2,
				"number": 2,
				"title": "Foundation Stones",
				"ids": {
					"trakt": 6784680,
					"tvdb": null,
					"imdb": null,
					"tmdb": 3997306,
					"tvrage": null
				}
			}

source

@simonc56
Copy link
Collaborator

But now I have another issue with the Top Boy series, because TVDB marks this series as having 4 seasons, but trakt divides it in two parts, first part containing the first 2 seasons and second part containing the other 2.
Because I'm using Sonarr to manage my library, it will use the TVDB structure and now I can't get it to map to trakt. Is there anything I could do? Thank you!

What you can do to fix this :

  1. Create an account on themoviedb.org it's free
  2. Add missing external ids of episodes you need (tvdb or imdb or both)
  3. Wait for a trakt database refresh (only VIP members can press the refresh button on show page), Trakt fetches external ids from TMDB
  4. Run PlexTraktSync again and voilà !

TMDB website is just like wikipedia, anybody can add and edit to improve the database.

@HoreaM
Copy link
Author

HoreaM commented Oct 18, 2022

I do still have to rename the episodes and season folders individually to coincide with the TheMovieDB structure, right?

@simonc56
Copy link
Collaborator

No need to coincide TMDB structure if ids are populated.
It will use ids to map tvdb ordering with tmdb ordering.

@HoreaM
Copy link
Author

HoreaM commented Oct 18, 2022

Thank you so much! Will do this and let you know if it worked as soon as the trakt db refreshes.

@simonc56
Copy link
Collaborator

Automatic update takes 24h :

image

@HoreaM
Copy link
Author

HoreaM commented Oct 19, 2022

So, good news first, the episodes finally updated their data on trakt (for example), but for some reason, plextraktsync still can't pick up on that episode (and the rest of this season).

tus@tus:~$ plextraktsync inspect 1697
PlexTraktSync [0.22.4]

Inspecting 1697: <tvdb:8975860:Episode:1697:Top-Boy-s04e01>
URL: -
key=/library/metadata/1697
Title: Good Morals
Media.Duration: 01:06:26
Media.Type: 'episode'
Media.Guid: 'plex://episode/6252b412a0f06e6908e15bc0'
Media.Guids: [<Guid:imdb://tt18949816>, <Guid:tvdb://8975860>]
Audio: '5.1(side)', 'English (EAC3 5.1)'
Video: 'h264'
Subtitles:
  Subtitle 1: (English) Forced (codec: srt, selected: True, transient: None)
  Subtitle 2: (English) None (codec: srt, selected: False, transient: None)
  Subtitle 3: (English) SDH (codec: srt, selected: False, transient: None)
  Subtitle 4: (العربية) None (codec: srt, selected: False, transient: None)
  Subtitle 5: (Čeština) None (codec: srt, selected: False, transient: None)
  Subtitle 6: (Dansk) None (codec: srt, selected: False, transient: None)
  Subtitle 7: (Deutsch) None (codec: srt, selected: False, transient: None)
  Subtitle 8: (Ελληνικά) None (codec: srt, selected: False, transient: None)
  Subtitle 9: (Español) None (codec: srt, selected: False, transient: None)
  Subtitle 10: (Español) European (codec: srt, selected: False, transient: None)
  Subtitle 11: (Suomi) None (codec: srt, selected: False, transient: None)
  Subtitle 12: (Français) None (codec: srt, selected: False, transient: None)
  Subtitle 13: (עברית) None (codec: srt, selected: False, transient: None)
  Subtitle 14: (Hrvatski) None (codec: srt, selected: False, transient: None)
  Subtitle 15: (magyar) None (codec: srt, selected: False, transient: None)
  Subtitle 16: (Indonesia) None (codec: srt, selected: False, transient: None)
  Subtitle 17: (Italiano) None (codec: srt, selected: False, transient: None)
  Subtitle 18: (日本語) None (codec: srt, selected: False, transient: None)
  Subtitle 19: (한국어) None (codec: srt, selected: False, transient: None)
  Subtitle 20: (norsk bokmål) None (codec: srt, selected: False, transient: None)
  Subtitle 21: (Nederlands) None (codec: srt, selected: False, transient: None)
  Subtitle 22: (polski) None (codec: srt, selected: False, transient: None)
  Subtitle 23: (Português) None (codec: srt, selected: False, transient: None)
  Subtitle 24: (Português) Brazilian (codec: srt, selected: False, transient: None)
  Subtitle 25: (română) None (codec: srt, selected: False, transient: None)
  Subtitle 26: (Русский) None (codec: srt, selected: False, transient: None)
  Subtitle 27: (Svenska) None (codec: srt, selected: False, transient: None)
  Subtitle 28: (Kiswahili) None (codec: srt, selected: False, transient: None)
  Subtitle 29: (ไทย) None (codec: srt, selected: False, transient: None)
  Subtitle 30: (Türkçe) None (codec: srt, selected: False, transient: None)
  Subtitle 31: (Tiếng Việt) None (codec: srt, selected: False, transient: None)
  Subtitle 32: (中文) Simplified (codec: srt, selected: False, transient: None)
  Subtitle 33: (中文) Traditional (codec: srt, selected: False, transient: None)
Parts:
  Part 1: /mnt/cloud/Series/Top Boy/Season 4/Top Boy - S04E01 - Good Morals WEBDL-1080p.mkv
Guids:
  Guid: <PlexGuid:tvdb://8975860>, Id: 8975860, Provider: 'tvdb'
  Guid: <PlexGuid:imdb://tt18949816>, Id: tt18949816, Provider: 'imdb'
Metadata: {'collected_at': '2022-10-02:T07:54:44.000Z', 'media_type': 'digital', 'resolution': 'hd_1080p', 'audio': 'dolby_digital_plus', 'audio_channels': '5.1'}
WARNING  <Episode:1697:Top-Boy-s04e01>: Skipping guid <PlexGuid:tvdb://8975860> not found on Trakt
WARNING  <Episode:1697:Top-Boy-s04e01>: Skipping guid <PlexGuid:imdb://tt18949816> not found on Trakt

Any idea why it can't seem to find it?

@glensc
Copy link
Collaborator

glensc commented Oct 20, 2022

Any idea why it can't seem to find it?

random quess: cached in trakt_cache.sqlite. you can find the path to it with plextraktsync info command and delete (or rename) it

@HoreaM
Copy link
Author

HoreaM commented Oct 20, 2022

random quess: cached in trakt_cache.sqlite. you can find the path to it with plextraktsync info command and delete (or rename) it

Yes, you were absolutely correct. I deleted the sqlite file and re-synced and it found the episodes now, thank you.
I sadly have encountered a new issue though (sorry if this seems like a never-ending story...)
For some reason, the first 4 episodes of the season are seen by plextraktsync as being "watched" on trankt, even though that is not the case at all, for example the first episode:

tus@tus:/$ plextraktsync inspect 1697
PlexTraktSync [0.22.4]

Inspecting 1697: <tvdb:8975860:Episode:1697:Top-Boy-s04e01>
URL: -
key=/library/metadata/1697
Title: Good Morals
Media.Duration: 01:06:26
Media.Type: 'episode'
Media.Guid: 'plex://episode/6252b412a0f06e6908e15bc0'
Media.Guids: [<Guid:imdb://tt18949816>, <Guid:tvdb://8975860>]
Audio: '5.1(side)', 'English (EAC3 5.1)'
Video: 'h264'
Subtitles:
  Subtitle 1: (English) Forced (codec: srt, selected: True, transient: None)
  Subtitle 2: (English) None (codec: srt, selected: False, transient: None)
  Subtitle 3: (English) SDH (codec: srt, selected: False, transient: None)
  Subtitle 4: (العربية) None (codec: srt, selected: False, transient: None)
  Subtitle 5: (Čeština) None (codec: srt, selected: False, transient: None)
  Subtitle 6: (Dansk) None (codec: srt, selected: False, transient: None)
  Subtitle 7: (Deutsch) None (codec: srt, selected: False, transient: None)
  Subtitle 8: (Ελληνικά) None (codec: srt, selected: False, transient: None)
  Subtitle 9: (Español) None (codec: srt, selected: False, transient: None)
  Subtitle 10: (Español) European (codec: srt, selected: False, transient: None)
  Subtitle 11: (Suomi) None (codec: srt, selected: False, transient: None)
  Subtitle 12: (Français) None (codec: srt, selected: False, transient: None)
  Subtitle 13: (עברית) None (codec: srt, selected: False, transient: None)
  Subtitle 14: (Hrvatski) None (codec: srt, selected: False, transient: None)
  Subtitle 15: (magyar) None (codec: srt, selected: False, transient: None)
  Subtitle 16: (Indonesia) None (codec: srt, selected: False, transient: None)
  Subtitle 17: (Italiano) None (codec: srt, selected: False, transient: None)
  Subtitle 18: (日本語) None (codec: srt, selected: False, transient: None)
  Subtitle 19: (한국어) None (codec: srt, selected: False, transient: None)
  Subtitle 20: (norsk bokmål) None (codec: srt, selected: False, transient: None)
  Subtitle 21: (Nederlands) None (codec: srt, selected: False, transient: None)
  Subtitle 22: (polski) None (codec: srt, selected: False, transient: None)
  Subtitle 23: (Português) None (codec: srt, selected: False, transient: None)
  Subtitle 24: (Português) Brazilian (codec: srt, selected: False, transient: None)
  Subtitle 25: (română) None (codec: srt, selected: False, transient: None)
  Subtitle 26: (Русский) None (codec: srt, selected: False, transient: None)
  Subtitle 27: (Svenska) None (codec: srt, selected: False, transient: None)
  Subtitle 28: (Kiswahili) None (codec: srt, selected: False, transient: None)
  Subtitle 29: (ไทย) None (codec: srt, selected: False, transient: None)
  Subtitle 30: (Türkçe) None (codec: srt, selected: False, transient: None)
  Subtitle 31: (Tiếng Việt) None (codec: srt, selected: False, transient: None)
  Subtitle 32: (中文) Simplified (codec: srt, selected: False, transient: None)
  Subtitle 33: (中文) Traditional (codec: srt, selected: False, transient: None)
Parts:
  Part 1: d=35884;file://%2Fmnt%2Fcloud%2FSeries%2FTop+Boy%2FSeason+4%2FTop+Boy+-+S04E01+-+Good+Morals+WEBDL-1080p.mkv/mnt/cloud/Series/d=496151;file://%2Fmnt%2Fcloud%2FSeries%2FTop+Boy%2FSe
ason+4%2FTop+Boy+-+S04E01+-+Good+Morals+WEBDL-1080p.mkvTopd=272380;file://%2Fmnt%2Fcloud%2FSeries%2FTop+Boy%2FSeason+4%2FTop+Boy+-+S04E01+-+Good+Morals+WEBDL-1080p.mkv Boy/Season d=994807;fi
le://%2Fmnt%2Fcloud%2FSeries%2FTop+Boy%2FSeason+4%2FTop+Boy+-+S04E01+-+Good+Morals+WEBDL-1080p.mkv4d=272380;file://%2Fmnt%2Fcloud%2FSeries%2FTop+Boy%2FSeason+4%2FTop+Boy+-+S04E01+-+Good+Mora
ls+WEBDL-1080p.mkv/Top Boy - S04E01 - Good Morals WEBDL-1080p.mkv
Guids:
  Guid: <PlexGuid:tvdb://8975860>, Id: 8975860, Provider: 'tvdb'
  Guid: <PlexGuid:imdb://tt18949816>, Id: tt18949816, Provider: 'imdb'
Metadata: {'collected_at': '2022-10-02:T07:54:44.000Z', 'media_type': 'digital', 'resolution': 'hd_1080p', 'audio': 'dolby_digital_plus', 'audio_channels': '5.1'}
Trakt: https://trakt.tv/episodes/5973873
Plex Rating: None
Trakt Rating: None
Watched on Plex: False
Watched on Trakt: True
Plex play history:

But this clearly states I haven't watched it (not part of my history):

image

Episodes 5-8 seem to be alright.

@simonc56
Copy link
Collaborator

simonc56 commented Oct 20, 2022

The script is misunderstanding Top Boy and Top Boy 2019 shows.

For some reason, the first 4 episodes of the season are seen by plextraktsync as being "watched" on trankt

Season 2 of Top Boy has 4 episodes.

@HoreaM
Copy link
Author

HoreaM commented Oct 20, 2022

The trakt link it finds when calling the inspect command is the correct one though.

@simonc56
Copy link
Collaborator

Can you inspect season 4 episode 5 ?

@HoreaM
Copy link
Author

HoreaM commented Oct 20, 2022

The script is misunderstanding Top Boy and Top Boy 2019 shows.

Season 2 of Top Boy has 4 episodes.

Yep, you are right, I have marked episode 1 of season 2 of Top Boy as unwatched on trakt and now plextraktsync is also reporting episode 1 of season 2 of Top Boy 2019 as unwatched on trakt.
I don't really understand why it confuses them, since the 2 episodes have different TVDB ids.
Curious thing is, when I "watch" one of the episodes from Top Boy 2019 season 2 in plex, it only marks the correct episode as watched in trakt too.

Can you inspect season 4 episode 5 ?

Yes:

tus@tus:~$ plextraktsync inspect 1701
PlexTraktSync [0.22.4]

Inspecting 1701: <tvdb:9046428:Episode:1701:Top-Boy-s04e05>
URL: -
key=/library/metadata/1701
Title: 15 Points
Media.Duration: 00:53:22
Media.Type: 'episode'
Media.Guid: 'plex://episode/6252b413a0f06e6908e15bc8'
Media.Guids: [<Guid:imdb://tt18932530>, <Guid:tvdb://9046428>]
Audio: '5.1(side)', 'English (EAC3 5.1)'
Video: 'h264'
Subtitles:
  Subtitle 1: (English) Forced (codec: srt, selected: True, transient: None)
  Subtitle 2: (English) None (codec: srt, selected: False, transient: None)
  Subtitle 3: (English) SDH (codec: srt, selected: False, transient: None)
  Subtitle 4: (العربية) None (codec: srt, selected: False, transient: None)
  Subtitle 5: (Čeština) None (codec: srt, selected: False, transient: None)
  Subtitle 6: (Dansk) None (codec: srt, selected: False, transient: None)
  Subtitle 7: (Deutsch) None (codec: srt, selected: False, transient: None)
  Subtitle 8: (Ελληνικά) None (codec: srt, selected: False, transient: None)
  Subtitle 9: (Español) None (codec: srt, selected: False, transient: None)
  Subtitle 10: (Español) European (codec: srt, selected: False, transient: None)
  Subtitle 11: (Suomi) None (codec: srt, selected: False, transient: None)
  Subtitle 12: (Français) None (codec: srt, selected: False, transient: None)
  Subtitle 13: (עברית) None (codec: srt, selected: False, transient: None)
  Subtitle 14: (Hrvatski) None (codec: srt, selected: False, transient: None)
  Subtitle 15: (magyar) None (codec: srt, selected: False, transient: None)
  Subtitle 16: (Indonesia) None (codec: srt, selected: False, transient: None)
  Subtitle 17: (Italiano) None (codec: srt, selected: False, transient: None)
  Subtitle 18: (日本語) None (codec: srt, selected: False, transient: None)
  Subtitle 19: (한국어) None (codec: srt, selected: False, transient: None)
  Subtitle 20: (norsk bokmål) None (codec: srt, selected: False, transient: None)
  Subtitle 21: (Nederlands) None (codec: srt, selected: False, transient: None)
  Subtitle 22: (polski) None (codec: srt, selected: False, transient: None)
  Subtitle 23: (Português) None (codec: srt, selected: False, transient: None)
  Subtitle 24: (Português) Brazilian (codec: srt, selected: False, transient: None)
  Subtitle 25: (română) None (codec: srt, selected: False, transient: None)
  Subtitle 26: (Русский) None (codec: srt, selected: False, transient: None)
  Subtitle 27: (Svenska) None (codec: srt, selected: False, transient: None)
  Subtitle 28: (Kiswahili) None (codec: srt, selected: False, transient: None)
  Subtitle 29: (ไทย) None (codec: srt, selected: False, transient: None)
  Subtitle 30: (Türkçe) None (codec: srt, selected: False, transient: None)
  Subtitle 31: (Tiếng Việt) None (codec: srt, selected: False, transient: None)
  Subtitle 32: (中文) Simplified (codec: srt, selected: False, transient: None)
  Subtitle 33: (中文) Traditional (codec: srt, selected: False, transient: None)
Parts:
  Part 1: d=82584;file://%2Fmnt%2Fcloud%2FSeries%2FTop+Boy%2FSeason+4%2FTop+Boy+-+S04E05+-+15+Points+WEBDL-1080p.mkv/mnt/cloud/Series/d=122471;file://%2Fmnt%2Fcloud%2FSeries%2FTop+Boy%2FSeason+4%2FTop+Boy+-+S04E05+-+15+Points+WEBDL-1080p.mkvTopd=286885;f
ile://%2Fmnt%2Fcloud%2FSeries%2FTop+Boy%2FSeason+4%2FTop+Boy+-+S04E05+-+15+Points+WEBDL-1080p.mkv Boy/Season d=643372;file://%2Fmnt%2Fcloud%2FSeries%2FTop+Boy%2FSeason+4%2FTop+Boy+-+S04E05+-+15+Points+WEBDL-1080p.mkv4d=286885;file://%2Fmnt%2Fcloud%2FSeri
es%2FTop+Boy%2FSeason+4%2FTop+Boy+-+S04E05+-+15+Points+WEBDL-1080p.mkv/Top Boy - S04E05 - d=643372;file://%2Fmnt%2Fcloud%2FSeries%2FTop+Boy%2FSeason+4%2FTop+Boy+-+S04E05+-+15+Points+WEBDL-1080p.mkv15d=286885;file://%2Fmnt%2Fcloud%2FSeries%2FTop+Boy%2FSea
son+4%2FTop+Boy+-+S04E05+-+15+Points+WEBDL-1080p.mkv Points WEBDL-1080p.mkv
Guids:
  Guid: <PlexGuid:tvdb://9046428>, Id: 9046428, Provider: 'tvdb'
  Guid: <PlexGuid:imdb://tt18932530>, Id: tt18932530, Provider: 'imdb'
Metadata: {'collected_at': '2022-10-02:T07:54:44.000Z', 'media_type': 'digital', 'resolution': 'hd_1080p', 'audio': 'dolby_digital_plus', 'audio_channels': '5.1'}
Trakt: https://trakt.tv/episodes/5974528
Plex Rating: None
Trakt Rating: None
Watched on Plex: False
Watched on Trakt: False
Plex play history:

@simonc56
Copy link
Collaborator

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...

@simonc56
Copy link
Collaborator

simonc56 commented Oct 22, 2022

simonc56 added a commit to simonc56/PlexTraktSync that referenced this issue Oct 25, 2022
simonc56 added a commit to simonc56/PlexTraktSync that referenced this issue Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants