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
android version? #967
Comments
You can already run youtube-dl on android; just install Python, download youtube-dl, and run it. However, at the moment, there are no official plans to provide further android integration, but you are of course welcome to contribute the necessary code. As with GUIs, it is usually better to call youtube-dl though and move the work into an external repository. |
I'm trying to do this, but I get an encoding error. Is there anything else I must do with the youtube-dl.py file? |
There are other linux systems as well that don't declare filesysencoding? |
@canamcy & @daprofessa19 open new issues for that |
2013-09-16 works. |
How do I get python to run youtube-dl do I need to use sl4a cheers |
Quote: "You can already run youtube-dl on android; just install Python, download youtube-dl, and run it" Have you verified that yourself? — I doubt it. The link that you supplied is to an essentially dead project. Neither their ancient Python 2.6.2 nor their more recent 3.2 work with youtube-dl. I couldn't make any use of QPython apps available at Google Play either. I am not aware of any working port of Python 2.7 or 3.3. to Android. That's really a great pity since youtube-dl has been a great command line tool. Making it available under Android would be very desirable. |
@Mariusz-W youtube-dl works fine with Python 2.6 (3.2 is fundamentally incompatible to 2.x, so we don't support that). Since you don't seem to believe me, here is a screenshot of youtube-dl on android, under SL4A 2.6: Since it works fine and comments seem to go off the rails, I'm closing this issue now. If anyone wants to develop a youtube-dl GUI for android, you're more than welcome to do so - feel free to open new issues on anything that doesn't work or could be improved. I would also be happy to contribute to any development, but not lead it. I agree that we are missing a great port of current-day cPython versions, but that's out of the scope of this project. |
Would you kindly provide information (or the relevant screenshots) regarding how did you execute youtube-dl with command line arguments? |
@Mariusz-W Install Python somewhere (I used SL4A for this screenshot, but you can also compile your own), download youtube-dl and run
was used to produce the above screenshot. I prefer to use |
Thank you for suggesting it. I am aware of YTD. In fact, I installed it yesterday—but your suggestion may be helpful to others who, like me, struggle to make My tablet is an unrooted Nexus 7 with Android 4.3. I like to use Android terminal with I keep my own executables in |
I made my own runytdl.py which uses the python interpreter path and On Sun, Sep 29, 2013 at 7:11 PM, Mariusz-W notifications@github.com wrote:
|
Tried running YoutubeDL.py in qpython but I get following error: Any ideas? |
@Adrianzo Don't run |
Ok. Now it says... How can I add that module? It's not avaiable at
|
@Adrianzo ctypes is part of the python stdlib, so check your Python installation. If ctypes is not present, you don't have a real Python running. |
Hmm. I reinstalled both qpy 2 and 4. Same ctypes error on qpy 2 but I'm ects3/youtube_dl/.last_tmp.py" < @Adrianzo https://github.com/Adrianzo ctypes is part of the python stdlib — |
@Adrianzo It may sound strange, but qpy3 is an outdated version of Python. youtube-dl requires Python 2.6, 2.7, or 3.3+. qpython3 is using the horribly outdated (and long deprecated) 3.2. Please contact the qpy project and request ctypes and/or a recent version of Python. |
Ok thanks for all the support. Really appreciate it. Isn't any other way to run python software on Android? I tried sl4a but didn't knew how to execute the code or load the |
Some people replied to this older thread. Current youtube-dl is NOT compatible with SL4A anymore because 2.6.5 and higher seems to be required (or 3.3). If anybody knows his to install this on an Android please let me know. |
@cprior While we do recommend a current version of Python and are hesitant to support really old versions of Python, youtube-dl 2014.11.15.1 works fine on Python 2.6.2 for me. Can you provide any sources to your statement of (the current version of) youtube-dl not running on SL4A? If you encounter a bug, please report it. |
Wohoo, I was a day behind! YES, it works now! (Just downloaded the latest version.) Thanks for the heads-up! |
I confirm that with 2014-11-15.1 it is possible to link on an Android phone Tasker, AutoShare and Python into youtube-dl. I will now implement (in Tasker) a basic 'queue' to 'download later when in WiFi'. |
I'm still having troubles... At least I now got to a python 262 console u0_a422@t03g:/storage/emulated/0 $
|
Here is a simple way to run youtube-dl on android: @Adrianzo it seems that python is not able to find the libraries in its path. Follow Step1 in the above link |
i know it's been a while since the last time someone posted but i'm just trying this out on my HTC one M9 without root and a terminal emulator, i have python(r5) installed on it which i got from the website the last poster commented here; It installs fine, i have the unzipped youtube-dl on my local sdcard (not external) and i'm getting permission denied for ./youtube-dl ; i've tried running several different chmod commands in different places, still all the same, can someone who has had the same problem who managed to fix it please help!!! thanks in advance. |
I've not tested it, while AFAIK either directly executing files or
|
this is where ima sound like a complete n00b, i have no idea where my python is installed... i've looked on internal and external /android/. folders |
@bossG Sorry for the late response. In many cases the Python binary locates somewhere in /data/. However, you need root priviledge for reading all files in this folder. |
There's a command at http://stackoverflow.com/a/13780633/3786245. The author of that answer uses SL4A for the trick. I didn't try the command by my own, and I guess these parameters may not apply to the latest version of SL4A. |
is there any way to use youtube-dl on android app. There is 2 possible way first; add executable youtube-dl file to android project and run it with command codes second way add scripts to android project and run it. i succeed second way as running scripts on ios project. and also i cant use youtube-dl executable file on android project. i am searching a native example project that can run python codes |
@cprior Can your share this tasker project? Trying to do the same with Termux and youtube-dl.
|
Termux provides Python. You can |
Already did that. I'm interessted in the tasker project to automate things. |
Any way to integrate it into an existing Android app? I mean, is there a way to run a python script from Java? I've been researching but haven't find anything useful yet. |
i ran python scripts in ios. It must be possible to run python scripts in android. I am searching a good example. If i will find out, i will share from here |
Final run ok for me, this is the code that running right
Add os library to change directory if denied write permissions Resume:
Where Link video is copy from youtube Use this method if you are not root user Update:
|
Installing
More info: https://www.reddit.com/r/Piracy/comments/baufql/youtubedl_the_easy_way_on_android/ In that link is explained how to automate it, so you just share the link, and it starts downloading |
I want to use my android phone to download youtube videos via public wi-fi and watch them later back home. Will you (plan to) release android version for youtube-dl?
The text was updated successfully, but these errors were encountered: