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

ytFiles still null

Open akashpopat opened this issue 8 years ago • 27 comments

Hi I opened an issue today and it was closed by you with a commit but the issue hasn't been resolved. It still gives me ytFiles is null

Thanks

akashpopat avatar Jun 23 '16 13:06 akashpopat

It has been fixed with that commit. I confirm it.

Ashish-Bansal avatar Jun 27 '16 08:06 Ashish-Bansal

Moreover, if it's not working for you, reason could be you are still using version 1.4. Use Master Snapshot instead.

Ashish-Bansal avatar Jun 27 '16 08:06 Ashish-Bansal

@Ashish-Bansal @HaarigerHarald Its not working even on master-SNAPSHOT version.

Try to extract the url for this video: https://youtu.be/yRCznT1dEk8

ShivamArora avatar Jun 28 '16 15:06 ShivamArora

For me is working the master-SNAPSHOT release with videos that fail with the v.1.4. Usually the problem are the "vevo" youtube videos. Thank you

AroundPixels avatar Jun 30 '16 07:06 AroundPixels

I can't reproduce it, that video works fine for me. Can any of you having problems create some logs with the LOGGING flag enabled?

HaarigerHarald avatar Jun 30 '16 11:06 HaarigerHarald

@HaarigerHarald I don't see anything in the logs regarding the failure. I just get a null youtubeFiles object within onUrisAvailable.

Can you tell me how do I enable the LOGGING flag?

ShivamArora avatar Jun 30 '16 12:06 ShivamArora

@shivamarora I assume you are using this library in Android application and using gradle build system.

Use this[0] to know how to include project as dependency in gradle. After that, change the value of this variable[1] to 'true'.

[0] https://github.com/MagicMicky/FreemiumLibrary/wiki/Import-the-library-in-Android-Studio [1] https://github.com/HaarigerHarald/android-youtubeExtractor/blob/master/youtubeExtractor/src/main/java/at/huber/youtubeExtractor/YouTubeUriExtractor.java#L35

Ashish-Bansal avatar Jun 30 '16 13:06 Ashish-Bansal

@Ashish-Bansal Done. What to do now? I'm not seeing any logs with tag 'YouTubeUriExtractor'.

ShivamArora avatar Jun 30 '16 14:06 ShivamArora

@shivamarora Did you remove the dependency which you had added earlier from the jitpack repository ?

This one : compile 'com.github.HaarigerHarald:android-youtubeExtractor:master-SNAPSHOT'

If yes, then you must have done something wrong.

Ashish-Bansal avatar Jun 30 '16 14:06 Ashish-Bansal

@Ashish-Bansal Yes I did remove it.

Also, its working if I run the same code in a new project with the gradle dependency.

May be there's something wrong with the packaging of the latest library in android studio with my existing project.

That's why even the logs are not coming out with the tag 'YouTubeUriExtractor'.

Can you guess what could be wrong?

Its not showing me an error to not find the class YoutubeUriExtractor, even if I remove the line compiling the project dependency. There's definitely something wrong with android studio.

ShivamArora avatar Jun 30 '16 14:06 ShivamArora

@shivamarora Disable Instant Run, update Android Studio, do clean build. That's all I can say. I had encountered such problem with one of the beta release of Android Studio.

@HaarigerHarald So, there's no issue in the library itself.

Ashish-Bansal avatar Jun 30 '16 14:06 Ashish-Bansal

@Ashish-Bansal @HaarigerHarald Also, the wikipedia page expected to contain the itag information has been changed.

I guess it had some table with different itag values before but it doesn't have that table now.

So can you guys provide itag for different quality formats at a place?

ShivamArora avatar Jun 30 '16 14:06 ShivamArora

@ShivamArora Check this link : https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L290

Ashish-Bansal avatar Jun 30 '16 15:06 Ashish-Bansal

@Ashish-Bansal if this is the case, I'm not able to extract 480p and 1080p Urls for the videos. You can try the video link I shared above.

I'm using itag 59 for 480p and itag 37 for 1080p.

ShivamArora avatar Jul 01 '16 05:07 ShivamArora

Theae itags stopped existing on the youtube page 2 years ago. If this is the only problem can we close it now?

HaarigerHarald avatar Jul 01 '16 10:07 HaarigerHarald

@ShivamArora try to get all available tags in an array, and get the most suitable for you (smaller video size, bigger, etc). Don't trust in only one or two tags, because every video has different tags available.

AroundPixels avatar Jul 01 '16 10:07 AroundPixels

@AroundPixels I've tried getting all the tags earlier from the ytFiles SparseArray. But it doesn't list any 1080p urls for videos. And I can download that video in the 1080p mp4 format from Tubemate.

So, its not showing the 1080p url even for videos that support the 1080p quality.

ShivamArora avatar Jul 06 '16 08:07 ShivamArora

I confirm that this issue is fixed. Guys, open other tickets for your issues and stop flooding this thread.

MC-ANDROID avatar Jul 06 '16 21:07 MC-ANDROID

@MC-ANDROID @HaarigerHarald @AroundPixels @Ashish-Bansal I've created a separate issue for not being able to get Urls of 1080p quality even for videos that do have a 1080p quality.

I can download a 1080p video from some downloaders on the web and using tubemate also.

But I haven't got any reply about my issue from since a week.

Can you guys please look into this and help me in getting Urls for 1080p quality?

ShivamArora avatar Jul 14 '16 07:07 ShivamArora

@ShivamArora Do you run your app in debug mode, or release mode?

ghost avatar Jul 15 '16 08:07 ghost

@cyluss I'm running it in debug mode!

ShivamArora avatar Jul 15 '16 11:07 ShivamArora

Oh, then never mind. Thank you

2016년 7월 15일 (금) 오후 8:45, Shivam Arora [email protected]님이 작성:

@cyluss https://github.com/cyluss I'm running it in debug mode!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/HaarigerHarald/android-youtubeExtractor/issues/10#issuecomment-232931704, or mute the thread https://github.com/notifications/unsubscribe-auth/AATdwyKjdWW4kk5JBW6XY_KxeqU5anZDks5qV3LbgaJpZM4I8z_N .

ghost avatar Jul 15 '16 11:07 ghost

@cyluss why were you asking then?

ShivamArora avatar Jul 15 '16 11:07 ShivamArora

I was guessing the proguard makes fail to fetch available formats.

2016년 7월 15일 (금) 오후 8:47, Shivam Arora [email protected]님이 작성:

@cyluss https://github.com/cyluss why were you asking then?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/HaarigerHarald/android-youtubeExtractor/issues/10#issuecomment-232932086, or mute the thread https://github.com/notifications/unsubscribe-auth/AATdw7UB3sRcLuMHowdISSo_p-87lenfks5qV3NKgaJpZM4I8z_N .

ghost avatar Jul 15 '16 11:07 ghost

Moreover, if it's not working for you, reason could be you are still using version 1.4. Use Master Snapshot instead.

its not working in master:Shanpshot also

fuelmandevteam avatar May 24 '21 11:05 fuelmandevteam

@ShivamArora Do you run your app in debug mode, or release mode?

both

fuelmandevteam avatar May 24 '21 11:05 fuelmandevteam

i have the same problem do someone manage to solve it?

the12devil avatar Jun 17 '23 18:06 the12devil