All Projects → Redwid → android-youtube-dl

Redwid / android-youtube-dl

Licence: other
The android library that wraps Python 2.7 and youtube-dl python scripts

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to android-youtube-dl

ytqck.github.io
YouTube quick ⚡ Search and Download Music for Free.
Stars: ✭ 18 (-48.57%)
Mutual labels:  youtube-api, youtube-dl, youtube-downloader
Youtub.ly Android
An android app to download 📹 videos and songs from youtube to phone internal storage
Stars: ✭ 17 (-51.43%)
Mutual labels:  youtube-api, youtube-dl, youtube-downloader
yt-videos-list
Create and **automatically** update a list of all videos on a YouTube channel (in txt/csv/md form) via YouTube bot with end-to-end web scraping - no API tokens required. Multi-threaded support for YouTube videos list updates.
Stars: ✭ 64 (+82.86%)
Mutual labels:  youtube-api, youtube-dl, youtube-downloader
Fast Youtube To Mp3 Converter Api
Very Fast YouTube to MP3 & MP4 Converter API
Stars: ✭ 69 (+97.14%)
Mutual labels:  youtube-api, youtube-dl, youtube-downloader
Laravel-Youtube-API
A way to add an API to your Laravel app that converts youtube video's to mp3/mp4 and returns a download/stream link and information.
Stars: ✭ 19 (-45.71%)
Mutual labels:  youtube-api, youtube-dl, youtube-downloader
youtubly-android
An android app to download 📹 videos and 🎶 songs from youtube to phone internal storage. In a nutshell NewPipe for just audio.
Stars: ✭ 24 (-31.43%)
Mutual labels:  youtube-api, youtube-dl, youtube-downloader
Youtubedl Android
youtube-dl for android
Stars: ✭ 235 (+571.43%)
Mutual labels:  youtube-dl, youtube-downloader
youtube-dl-batch
Simple batch files for simplifying basic usage of https://github.com/rg3/youtube-dl Windows .exe releases
Stars: ✭ 55 (+57.14%)
Mutual labels:  youtube-dl, youtube-downloader
PowerShell-Youtube-dl
A PowerShell script interface used to operate the youtube-dl command line program.
Stars: ✭ 64 (+82.86%)
Mutual labels:  youtube-dl, youtube-downloader
Youtube Mp3 Downloader
Extract music from YouTube videos
Stars: ✭ 187 (+434.29%)
Mutual labels:  youtube-dl, youtube-downloader
Youtubedownloader
Android App for searching for videos on Youtube by keywords using YouTube Data API and download videos from YouTube in different formats.
Stars: ✭ 25 (-28.57%)
Mutual labels:  youtube-api, youtube-downloader
Alexi5
A Discord Bot built using discordJS. Started as a joke for spamming memes. Branch "v2" is currently being used for active development. Hosted on Heroku.
Stars: ✭ 19 (-45.71%)
Mutual labels:  youtube-api, youtube-dl
Candy
🍭 Cross-platform YouTube-downloader with playlist and channel support as well as build-in audio / video converter.
Stars: ✭ 229 (+554.29%)
Mutual labels:  youtube-dl, youtube-downloader
Yturl
YouTube videos on the command line
Stars: ✭ 218 (+522.86%)
Mutual labels:  youtube-dl, youtube-downloader
pymusicdl
Download songs based on song name/ YouTube playlist/ Spotify playlist /album
Stars: ✭ 41 (+17.14%)
Mutual labels:  youtube-dl, youtube-downloader
android-browser-downloader
🌎 Android Browser - Video Downloader - This repository is deprecated. Please check out new version of this project at: https://github.com/cuongpm/youtube-dl-android
Stars: ✭ 34 (-2.86%)
Mutual labels:  youtube-dl, youtube-downloader
Downzemall
DownZemAll! is a download manager for Windows, MacOS and Linux
Stars: ✭ 157 (+348.57%)
Mutual labels:  youtube-dl, youtube-downloader
Youtube Downloader For Macos
Simple menu bar app to download YouTube movies on your Mac
Stars: ✭ 185 (+428.57%)
Mutual labels:  youtube-dl, youtube-downloader
gropple
Server and bookmarklet to download files via youtube-dl directly from your browser. Cross platform single binary installation, web browser configurable.
Stars: ✭ 33 (-5.71%)
Mutual labels:  youtube-dl, youtube-downloader
easyYoutubeDL
A manager for automating download lists based on youtube-dl
Stars: ✭ 21 (-40%)
Mutual labels:  youtube-dl, youtube-downloader

android-youtube-dl

The android library that wraps Python 2.7 and youtube-dl python scripts.

The library uses Python 2.7 distribution from: https://github.com/kivy/python-for-android project

The forked version of python-for-android could be found there: https://github.com/Redwid/python-for-android It has modified native wrapper to work with org.redwid.android.youtube.dl.YoutubeDlService

The forked version of python youtube-dl application could be found there: https://github.com/Redwid/youtube-dl It has a few changes to be able to work on android with Python 2.7, in additional it writes the output into files instead of printing to console.

Build Status

Build Status

Usage

You could embed that library into your own android application (please see /app as an example).

Or install the app and invoke it by using intents:

Firstly add this constants to your code:

    public static final String ACTION_DUMP_JSON =    "org.redwid.android.youtube.dl.action.DUMP_JSON";
    public static final String JSON_RESULT_SUCCESS = "org.redwid.android.youtube.dl.result.JSON_RESULT_SUCCESS";
    public static final String JSON_RESULT_ERROR =   "org.redwid.android.youtube.dl.result.JSON_RESULT_ERROR";
    public static final String VALUE_JSON = "JSON";
    public static final String VALUE_URL = "URL";
    public static final String VALUE_TIME_OUT = "TIME_OUT";

Register broadcast receiver:

           final IntentFilter intentFilter = new IntentFilter();
           intentFilter.addAction(JSON_RESULT_SUCCESS);
           intentFilter.addAction(JSON_RESULT_ERROR);
           this.context.registerReceiver(new BroadcastReceiver() {
               @Override
               public void onReceive(final Context context, final Intent intent) {
                   if(JSON_RESULT_SUCCESS.equals(intent.getAction()) || JSON_RESULT_ERROR.equals(intent.getAction())) {                                             
                        if (JSON_RESULT_ERROR.equals(intent.getAction())) {
                            Log.d(TAG, "onReceive(): JSON_RESULT_ERROR");
                        } else if (JSON_RESULT_SUCCESS.equals(intent.getAction())) {                            
                            Log.d(TAG, "onReceive(): JSON_RESULT_SUCCESS");                              
                            final String jsonAsString = intent.getStringExtra(VALUE_JSON);
                            //Paase youtube-dl json response     
                        }                   
                   }
               }
           }, intentFilter);

And finally send intent to android-youtube-dl, where %url% is a link to your youtube video:

    final Intent intent = new Intent();
    intent.setClassName("org.redwid.android.youtube.dl.app", "org.redwid.android.youtube.dl.YoutubeDlService");
    intent.setAction(ACTION_DUMP_JSON);
    intent.putExtra(VALUE_URL, %url%);
    context.startService(serviceIntent);    

When YoutubeDlService finished, your application will receive JSON_RESULT_SUCCESS or JSON_RESULT_ERROR intents.

Update

If you would like to customize youtube-dl python scripts or android native wrapper - re build private.mp3 and jniLibs:

  1. Clone youtube-dl: git clone https://github.com/Redwid/youtube-dl.git
  2. Clone python-for-android: git clone https://github.com/Redwid/python-for-android.git
  3. Execute sh /python-for-android/clean-build-copy.sh
  4. Find you new python and youtube-dl package in /libs/src/main/assets/private.mp3 and native libraries in /libs/src/main/jniLibs/

App

You could use the sample application to find out how to use android-youtube-dl Application has one screen. If you share any video from youtube android application to Android Youtube-Dl, after processing it will display video meta info and all discovered links:

alt text alt text

License

Apache 2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].