[Bug] IP blocked from youtube after sharing
Checklist
- [x] I make sure that the issue is NOT a duplicate of pinned issues
- [x] I make sure I am using the LATEST version - check here
- [x] I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
- [x] I have attached the error report in the issue
Version
4.7
Describe the bug
My IP was blocked by YouTube after sharing a URL from the main YouTube app that contained a ?sid parameter, which is most likely how they realized I was using an external client (since I'm not logged in with the Pipe pipe app).
Consider adding URL sanitization and only keep the params that are actually used within the app. Discard all the rest (since they might change the params name in future)
Frequency
Sometimes (40-60% of the time)
Device
Pixel 6
Steps to reproduce the bug
- Open the official YouTube app
- Share a video using the "share" feature and selecting directly Pipe pipe
- After a while IP gets blocked and any video fails to load in PP with message
Your IP is blocked by YouTube. Try using a VPN or logging in through Settings to continue.
Additional context
full report
IP blocked by YouTube after sharing a URL from the main YouTube app that contained a ?sid, which is most likely the cause.
## Exception
* __User Action:__ requested stream
* __Request:__ https://www.youtube.com/watch?v=CjIUVRei27g
* __Content Country:__ US
* __Content Language:__ en-US
* __App Language:__ en_US_#u-mu-celsius
* __Service:__ YouTube (Anonymous)
* __Version:__ 4.7.5
* __OS:__ Linux Android 16 - 36
<details><summary><b>Crash log </b></summary><p>
org.schabi.newpipe.extractor.exceptions.AntiBotException: Sign in to confirm you’re not a bot
at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.checkPlayabilityStatus(YoutubeStreamExtractor.java:1076)
at org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper$1.onSuccess(YoutubeParsingHelper.java:1480)
at org.schabi.newpipe.DownloaderImpl$1.onResponse(DownloaderImpl.java:370)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
at java.lang.Thread.run(Thread.java:1119)
</details>
<hr>
This issue has been closed as a duplicate. Please refer to the discussion in the following pinned issue(s):
- #1218
After logging in:
Exception
- User Action: play stream
- Request: Player error[type=ERROR_CODE_IO_BAD_HTTP_STATUS] occurred while playing https://www.youtube.com/watch?v=CjIUVRei27g
- Content Country: US
- Content Language: en-US
- App Language: en_US_#u-mu-celsius
- Service: YouTube (Logged in)
- Version: 4.7.5
- OS: Linux Android 16 - 36
Crash log
com.google.android.exoplayer2.ExoPlaybackException: Source error
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:644)
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.dispatchMessage(Looper.java:315)
at android.os.Looper.loopOnce(Looper.java:251)
at android.os.Looper.loop(Looper.java:349)
at android.os.HandlerThread.run(HandlerThread.java:100)
Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403
at org.schabi.newpipe.player.datasource.YoutubeHttpDataSource.open(YoutubeHttpDataSource.java:521)
at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:263)
at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:52)
at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:796)
at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:609)
at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84)
at com.google.android.exoplayer2.source.chunk.InitializationChunk.load(InitializationChunk.java:99)
at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:412)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
at java.lang.Thread.run(Thread.java:1119)