[true java call completed] https://github.com/siddht1/ydl_java help needeed , porting youtube-dl to java
See original GitHub issuePlease follow the guide below
- You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
- Put an
x
into all the boxes [ ] relevant to your issue (like that [x]) - Use Preview tab to see how your issue will actually look like
Make sure you are using the latest version: run youtube-dl --version
and ensure your version is 2016.10.19. If it’s not read this FAQ entry and update. Issues with outdated version will be rejected.
- I’ve verified and I assure that I’m running youtube-dl 2016.10.19
Before submitting an issue make sure you have:
- At least skimmed through README and most notably FAQ and BUGS sections
- Searched the bugtracker for similar issues including closed ones
What is the purpose of your issue?
- Bug report (encountered problems with youtube-dl)
- Site support request (request for adding support for a new site)
- Feature request (request for a new functionality)
- Question
- Other
The following sections concretize particular purposed issues, you can erase any section (the contents between triple —) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v
flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
$ youtube-dl -v <your command line>
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2016.10.19
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>
If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
- Single video: https://www.youtube.com/watch?v=BaW_jenozKc
- Single video: https://youtu.be/BaW_jenozKc
- Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc
Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible. If work on your issue requires account credentials please provide them or explain how one can obtain them.
i m currently developing a fix to run youtube-dl under java
method 1 :
java bytecode ----> jvm ----> exec python ----> python -----> youtube-dl
method 2 : java bytecode ----> jvm ----> exec jython ----> jython -----> youtube-dl
these are the output if youtube-dl is run through jython directly via terminal
code : java -jar jython.jar main.py -v
output: Traceback (most recent call last): File “/home/gh/Documents/jython.jar/Lib/runpy.py”, line 161, in _run_module_as_main File “/home/gh/Documents/jython.jar/Lib/runpy.py”, line 72, in _run_code File “youtube-dl.py/main.py”, line 16, in <module> File “youtube-dl.py/youtube_dl/init.py”, line 15, in <module> File “youtube-dl.py/youtube_dl/options.py”, line 8, in <module> File “youtube-dl.py/youtube_dl/downloader/init.py”, line 3, in <module> File “youtube-dl.py/youtube_dl/downloader/common.py”, line 9, in <module> File “youtube-dl.py/youtube_dl/compat.py”, line 2599, in <module> File “youtube-dl.py/youtube_dl/compat.py”, line 2599, in <module> File “/home/gh/Documents/jython.jar/Lib/shlex.py”, line 279, in split File “/home/gh/Documents/jython.jar/Lib/shlex.py”, line 269, in next File “/home/gh/Documents/jython.jar/Lib/shlex.py”, line 96, in get_token File “/home/gh/Documents/jython.jar/Lib/shlex.py”, line 124, in read_token at org.python.core.PyString.<init>(PyString.java:64) at org.python.core.PyString.<init>(PyString.java:70) at org.python.modules.cStringIO$StringIO.read(cStringIO.java:225) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Cannot create PyString with non-byte value
Issue Analytics
- State:
- Created 7 years ago
- Comments:42
FWIW the Jython-bug mentioned here (http://bugs.jython.org/issue2527) was just fixed as of https://github.com/jythontools/jython/commit/0b38e392c5adcf9c97a611a2051b02171e3a4764.
The Jython bug is reported to http://bugs.jython.org/issue2527