dmunozv04 / iSponsorBlockTV

SponsorBlock client for all YouTube TV clients.
GNU General Public License v3.0
2.21k stars 92 forks source link

Could not find video id #25

Closed L041S closed 9 months ago

L041S commented 2 years ago

Hello, The tool is working fine but on some videos, sponsored messages don’t get skipped. I checked the logs and it seems that the error "Could not find video id" is the problem.

For exemple it works with this video of Linus https://youtu.be/BtFdraQWVtM but not this one from Nozman https://youtu.be/A66mibBBAoo

Garciasergio commented 1 year ago

I have the same problem

dmunozv04 commented 1 year ago

Please attach logs/device details

mvicari commented 1 year ago

I'm having the same issue. Running Synology/Docker

Could not find video id Could not find video id ZteAovHJllk [{'start': 0, 'end': 4.2, 'UUID': ['5378f6709b14e39c814c8aff035fd48ce29ccd1d0c92e23b5d598db64d965c19d']}, {'start': 1212.709, 'end': 1283.594, 'UUID': ['59052147dd66c4a6b8f656a3fdb355d0e99be623155ae02d82eefaa491a4cd0d5']}]

dmunozv04 commented 1 year ago

The last 2 lines suggest that it is indeed working and finding the video id and the segments to skip correctly

wayou commented 1 year ago

same here, event after restarting the service,

{"atvs": [{"identifier": "xxx", "airplay_credentials": "xxx"}], "apikey": "AIzaSyCpmLw...CsCrZZHk", "skip_categories": ["sponsor", "selfpromo", "exclusive_access", "interaction", "poi_highlight", "intro", "outro", "preview", "filler", "music_offtopic"], "channel_whitelist": []}
Discovering devices on network...
Connecting to 192.x.x.115
Push updater started
Could not find video id
Could not find video id
Could not find video id
Could not find video id
...
dmunozv04 commented 1 year ago

What videos are you trying to watch? Please provide links Also, v2 is on the way and will avoid this issue entirely

wayou commented 1 year ago

What videos are you trying to watch? Please provide links Also, v2 is on the way and will avoid this issue entirely

well, almost any videos because form the log I didn't see anything else but the id not found

anyway, excited about the v2

dmunozv04 commented 1 year ago

This video is known to work: https://youtu.be/BtFdraQWVtM Please try with it and let me know if it does work

wayou commented 1 year ago

still id not found :(

pkarpovich commented 1 year ago

Hi there,

I recently experienced the same error you reported. I traced the issue to this line in the code: https://github.com/dmunozv04/iSponsorBlockTV/blob/1aa06e677f4d1f30da11f86f5ba30cc91b019efc/iSponsorBlockTV/api_helpers.py#L25

The YouTube API returned an error message stating, "YouTube Data API v3 has not been used in project XXX before or it is disabled. Enable it by visiting...". This seems to be the underlying cause for the subsequent 'Could not find video id' issue.

I want to propose enhancing API error handling. Could we print these error messages directly to the console? This might streamline the debugging process and help prevent similar misunderstandings in the future.

Looking forward to hearing your thoughts.

wayou commented 1 year ago

Enable the API seems work. Now there's only several "id not found" errors. Maybe we can print the guide to the console YouTube Data API Overview.

SystemZ commented 11 months ago

Just FYI for users from search engine. After creating API key, make sure you enabled YouTube Data API v3 at this URL and make sure you selected correct Project in GCP console https://console.cloud.google.com/apis/library/youtube.googleapis.com

oxixes commented 11 months ago

@SystemZ Thanks! Although the API key won't be needed soon (except for the whitelist).

dmunozv04 commented 9 months ago

Closed due to being stale and V2 overhauling