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

YouTube Links are now invalid #120

Open
1niceroli opened this issue Jan 7, 2025 · 3 comments
Open

YouTube Links are now invalid #120

1niceroli opened this issue Jan 7, 2025 · 3 comments
Assignees
Labels
Bug: API Something isn't working Severity: Issue Status: Concerning This issue pulls me to different levels of concern Type: Bug Type bug

Comments

@1niceroli
Copy link

1niceroli commented Jan 7, 2025

Since a few days, YouTube links are now rejected as invalid links.
I tried with versions 2.1.10, 2.1.11 and 2.1.12 on Forge 1.20.1 47.3.12 and got the following error for each display nearby:

[20:06:44] [ImageFetch-Worker-2/ERROR]:Exception occurred fixing URLorg.watermedia.api.network.patchs.AbstractPatch$FixingURLException: Failed to fix URL https://www.youtube.com/watch?v=1ZFseYPmkAk
	at org.watermedia.api.network.patchs.YoutubePatch.patch(YoutubePatch.java:89) ~[watermedia-2.1.12.jar%23763!/:2.1.12]
	at org.watermedia.api.network.NetworkAPI.patch(NetworkAPI.java:85) ~[watermedia-2.1.12.jar%23763!/:2.1.12]
	at org.watermedia.api.image.ImageFetch.run(ImageFetch.java:64) ~[watermedia-2.1.12.jar%23763!/:2.1.12]
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:?]
	at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:?]
	at java.lang.Thread.run(Unknown Source) ~[?:?]
Caused by: java.lang.RuntimeException: Cannot get video info
	at org.watermedia.api.network.patchs.YoutubePatch.patch(YoutubePatch.java:49) ~[watermedia-2.1.12.jar%23763!/:2.1.12]
	... 8 more
Caused by: org.watermedia.shaded.kiulian.downloader.YoutubeException$BadPageException: streamingData not found
	at org.watermedia.shaded.kiulian.downloader.parser.ParserImpl.parseFormats(ParserImpl.java:257) ~[watermedia-2.1.12.jar%23763!/:2.1.12]
	at org.watermedia.shaded.kiulian.downloader.parser.ParserImpl.parseVideoAndroid(ParserImpl.java:144) ~[watermedia-2.1.12.jar%23763!/:2.1.12]
	at org.watermedia.shaded.kiulian.downloader.parser.ParserImpl.parseVideo(ParserImpl.java:109) ~[watermedia-2.1.12.jar%23763!/:2.1.12]
	at org.watermedia.shaded.kiulian.downloader.parser.ParserImpl.parseVideo(ParserImpl.java:99) ~[watermedia-2.1.12.jar%23763!/:2.1.12]
	at org.watermedia.shaded.kiulian.downloader.YoutubeDownloader.getVideoInfo(YoutubeDownloader.java:56) ~[watermedia-2.1.12.jar%23763!/:2.1.12]
	at org.watermedia.api.network.patchs.YoutubePatch.patch(YoutubePatch.java:45) ~[watermedia-2.1.12.jar%23763!/:2.1.12]
	... 8 more
[20:06:44] [ImageFetch-Worker-2/ERROR]:Unhandled exception occurred while loading image from 'https://www.youtube.com/watch?v=1ZFseYPmkAk'java.lang.IllegalArgumentException: Invalid URL
	at org.watermedia.api.image.ImageFetch.run(ImageFetch.java:65) ~[watermedia-2.1.12.jar%23763!/:2.1.12]
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:?]
	at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:?]
	at java.lang.Thread.run(Unknown Source) ~[?:?]
@SrRapero720
Copy link
Member

youtube is breaking their api... and breakage is goin fast...

@SrRapero720 SrRapero720 self-assigned this Jan 16, 2025
@SrRapero720 SrRapero720 added Bug: API Something isn't working Severity: Issue Type: Bug Type bug Status: Concerning This issue pulls me to different levels of concern labels Jan 16, 2025
@Darkest000
Copy link

Any news on if this is getting fixed or not ?

@1niceroli
Copy link
Author

For me it worked last time I checked, but I guess its not the code, it's the ever changing API of YouTube itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: API Something isn't working Severity: Issue Status: Concerning This issue pulls me to different levels of concern Type: Bug Type bug
Projects
None yet
Development

No branches or pull requests

3 participants