stigger / trakt-for-appletv

Trakt.tv scrobbler for Apple TV
47 stars 7 forks source link

Netflix same description for every episode #27

Open m-ruhl opened 1 year ago

m-ruhl commented 1 year ago

If you play multiple titles in Netflix only the first description will be used for every title..

https://github.com/stigger/trakt-for-appletv/blob/84a8ca2bab161bc0bc0a787484c0feb085ee55b3/scrobbling.py#L254-L256

Example:

[INFO]: NF: S8: E17 “Test the Store”
[INFO]: NF: Searching with description
[DEBUG]: Using selector: KqueueSelector
[INFO]: NF: S8: E17 “Test the Store”
[INFO]: NF: Searching with description
[DEBUG]: Using selector: KqueueSelector
[DEBUG]: NF: searching: site:netflix.com "Dwight plans an impressive presentation for the Sabre store, and Andy suffers an embarrassing injury."
[DEBUG]: NF: searching: site:netflix.com "Dwight plans an impressive presentation for the Sabre store, and Andy suffers an embarrassing injury."
[INFO]: NF: fetch content id
[INFO]: NF: fetch content id
[DEBUG]: Starting new HTTPS connection (1): api.trakt.tv:443
[DEBUG]: Starting new HTTPS connection (2): api.trakt.tv:443
[DEBUG]: https://api.trakt.tv:443 "POST /scrobble/start HTTP/1.1" 201 None
[DEBUG]: https://api.trakt.tv:443 "POST /scrobble/pause HTTP/1.1" 429 None
[WARNING]: Request failed: "POST /scrobble/pause" - 429: "Rate limit exceeded" (Rate Limit Exceeded)
...
[INFO]: NF: S3: E20 “Digital Estate Planning”
[INFO]: NF: Searching with description
[DEBUG]: NF: searching: site:netflix.com "Dwight plans an impressive presentation for the Sabre store, and Andy suffers an embarrassing injury."
[INFO]: NF: fetch content id
[DEBUG]: https://api.trakt.tv:443 "POST /scrobble/start HTTP/1.1" 201 None
[DEBUG]: https://api.trakt.tv:443 "POST /scrobble/start HTTP/1.1" 201 None
[INFO]: NF: S3: E20 “Digital Estate Planning”
[DEBUG]: https://api.trakt.tv:443 "POST /scrobble/pause HTTP/1.1" 429 None
[WARNING]: Request failed: "POST /scrobble/pause" - 429: "Rate limit exceeded" (Rate Limit Exceeded)
m-ruhl commented 1 year ago

Also found out in my testing, the search matched better when not including the episode title in the query