-
Notifications
You must be signed in to change notification settings - Fork 104
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
Improvement: Reformat non-embedded to embedded youtube video link #970
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in general looks good now, but I'd suggest also to do the following:
- use NSURL as ivar instead of NSString: you always create NSURL to pass to NSURLComponents, and in the end you need NSURL to create request anyway
- create NSURL and NSURLComponents outside of the new functions (i.e. do it in
processTrailerFromString
) and pass them to the functions
Good point, done. |
a850f0e
to
6c88e1c
Compare
Squashed and rebased as I understood despite the comments it was approved. Just let me know, if you still would like me to do further changes. |
seems you missed this point, could you adjust? |
Yep, sorry. Was only focusing the |
The solution will identify multiple variants of youtube.com and youtu.be links (http, https, www or not), extract the video id and create a fresh FullHD embedded youtube link from this. This allows to show such links with in-app preview. Use NSURL for embedVideoURL ivar.
a0b0851
to
0461f75
Compare
Squashed and rebased, with latest fixups. More rework than expected for this initially small change, but the implementation is more straight forward now. |
Description
The implemented solution will identify multiple variants of youtube.com and youtu.be links (http, https, www or not), extract the video id and create a fresh FullHD embedded youtube link from this. This allows to show all such links with in-app preview.
Summary for release notes
Improvement: Reformat non-embedded to embedded youtube video link