Code Monkey home page Code Monkey logo

Comments (8)

rodrigograca31 avatar rodrigograca31 commented on July 22, 2024

Steps to reproduce:

  1. Open the Youtube App on your phone. (I've tested on Androdi 4.4 with latest youtube app installed)
  2. Click the "share arrow"
  3. Make sure "Share as [YOUR NAME]" is checked (It was checked by default)
  4. Choose another app. (I've chosen "Clipboard" and pasted somewhere else to see the link)

from jsvideourlparser.

Zod- avatar Zod- commented on July 22, 2024

I don't get those for some reason but there are more links out there like that so I'll just add it.

from jsvideourlparser.

Zod- avatar Zod- commented on July 22, 2024

Actually it seems like this is a new mediaType since the actual id of the video is A3PDXmYoF5U. The shared url produces a new id that isn't a video in itself. Using the id from your share comes up with no existing video https://youtu.be/E14kBrDEvYo. I'm gonna make a bigger update later on and will add the new mediaType there.

from jsvideourlparser.

rodrigograca31 avatar rodrigograca31 commented on July 22, 2024

@Zod- any way to get the real id?
I think you have to open one of these links on your phone before to start seeing an option to create them when you click the Share option on the Android Youtube App.....

from jsvideourlparser.

Zod- avatar Zod- commented on July 22, 2024

There's probably some YouTube API out there to figure out the real url but this parser isn't the right place to put it in.

from jsvideourlparser.

rodrigograca31 avatar rodrigograca31 commented on July 22, 2024

Are you saying this parser will not support this kind of URL's?

from jsvideourlparser.

Zod- avatar Zod- commented on July 22, 2024

I just browsed the YouTube API for a while and actually couldn't find anything that would allow you to resolve the real url. Like the list API for videos just returns nothing when you use 'E14kBrDEvYo' as id.

But yeah I didn't want to add it anyway since this is really just about parsing some text and I really don't want some random YouTube API calls to it. Maybe there is a way to get the API to return the real url so what you could do is parse urls with this parser to know it's one of those shared urls and then do API calls with the results.

from jsvideourlparser.

rodrigograca31 avatar rodrigograca31 commented on July 22, 2024

Ok.... I agree.
Just as a side note: I've found a commit in youtube-dl that deals with this type of URLs: ytdl-org/youtube-dl@4080530
They download the page and get the meta tag videoId.

from jsvideourlparser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.