android-youtubeExtractor icon indicating copy to clipboard operation
android-youtubeExtractor copied to clipboard

how to pass html5=1 in my request method

Open shailendra-rajpoot opened this issue 3 years ago • 10 comments

how to pass this parameter html5=1 in my method extractYoutubeUrl()

extractYoutubeUrl("https://www.youtube.com/watch?v=$id",iTag.toInt(),::getDecodedUrl)

shailendra-rajpoot avatar May 20 '21 16:05 shailendra-rajpoot

I downloaded the source code and added it directly to the YoutubeExtractor url string

DotProduct avatar May 20 '21 17:05 DotProduct

please sir do this as soon as possible. thanku so much sir for reply. I am waiting your response.

shailendra-rajpoot avatar May 20 '21 17:05 shailendra-rajpoot

Sorry. I am not a contributor to this repo. If you clone the repo, and link it to your project I can tell you where to make the change

DotProduct avatar May 20 '21 17:05 DotProduct

@DotProduct in youtubeExtractor java file shows read only i cant doany changes,how to change it ,bro

karthikstrk avatar May 20 '21 17:05 karthikstrk

You cloned it? Or pull down the zip file? Make sure you are accessing the file after it has been unzipped. Otherwise extract the files first then make the change If you cloned it, I'm not sure why your own filesystem would prevent you from editing

DotProduct avatar May 20 '21 18:05 DotProduct

sir please you create clone of it and make nassesary changes like html5=1 and provide new repo

implementation 'com.github.HaarigerHarald:android-youtubeExtractor:v2.0.0'

shailendra-rajpoot avatar May 20 '21 18:05 shailendra-rajpoot

@karthikstrk you can use this fork

implementation 'com.github.MahmoudMabrok:android-youtubeExtractor:master-SNAPSHOT'

MahmoudMabrok avatar May 21 '21 08:05 MahmoudMabrok

Description how it works here. https://github.com/thisistorsten/YouTubeApiSharp

thisistorsten avatar May 21 '21 10:05 thisistorsten

i found it is being added (html5=1)

https://github.com/HaarigerHarald/android-youtubeExtractor/blob/46579d12cb33ea9815720416a48bf5f5fb9c88b7/youtubeExtractor/src/main/java/at/huber/youtubeExtractor/YouTubeExtractor.java#L209

MahmoudMabrok avatar May 31 '21 11:05 MahmoudMabrok

we should use implementation 'com.github.HaarigerHarald:android-youtubeExtractor:master-SNAPSHOT'

MahmoudMabrok avatar May 31 '21 11:05 MahmoudMabrok