Skip to content

Remove timestamp from share url for all services except youtube#5228

Merged
TobiGr merged 1 commit into
TeamNewPipe:devfrom
B0pol:share_ts
Dec 20, 2020
Merged

Remove timestamp from share url for all services except youtube#5228
TobiGr merged 1 commit into
TeamNewPipe:devfrom
B0pol:share_ts

Conversation

@B0pol

@B0pol B0pol commented Dec 19, 2020

Copy link
Copy Markdown
Member

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

Remove timestamp from share url unless it's youtube.
It produced not found error for PeerTube, media.ccc.de, SoundCloud.

Ideally we should implement this
#4316 (comment)

we also shouldn't even use URL there client-side, but add an extractor-side API for getting an URL with timestamp.

but it has been three months and no one is willing to work on this, then I'd like to get this PR merged for the next release.

Fixes the following issue(s)

APK testing

app-debug.zip

Due diligence

Comment thread app/src/main/java/org/schabi/newpipe/player/VideoPlayerImpl.java Outdated
It produces not found error for PeerTube, media.ccc.de, SoundCloud
@TobiGr

TobiGr commented Dec 20, 2020

Copy link
Copy Markdown
Contributor

@Stypox Stypox left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good in my opinion

@B0pol B0pol added bug Issue is related to a bug multiservice Issues related to multiple services labels Dec 20, 2020
@B0pol

B0pol commented Dec 20, 2020

Copy link
Copy Markdown
Member Author

@TobiGr please read the pr description

@TobiGr

TobiGr commented Dec 20, 2020

Copy link
Copy Markdown
Contributor

@Stypox

Stypox commented Dec 20, 2020

Copy link
Copy Markdown
Member

@TobiGr that should be handled extractor-side, this is just a (hopefully temporary) workaround, so it shouldn't include timestamp share for all services

@TobiGr

TobiGr commented Dec 20, 2020

Copy link
Copy Markdown
Contributor

I read the PR description. But why only fix the bug for YouTube and not for other services as well?

@B0pol

B0pol commented Dec 20, 2020

Copy link
Copy Markdown
Member Author

@Stypox you are right, so that it doesn't break URLs

@TobiGr TobiGr merged commit 0c656ab into TeamNewPipe:dev Dec 20, 2020
This was referenced Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue is related to a bug multiservice Issues related to multiple services

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Share does not work from soundcloud

4 participants