question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[true java call completed] https://github.com/siddht1/ydl_java help needeed , porting youtube-dl to java

See original GitHub issue

Please 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):


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:closed
  • Created 7 years ago
  • Comments:42

github_iconTop GitHub Comments

2reactions
Steworicommented, Feb 1, 2017
1reaction
yan12125commented, Oct 20, 2016

The Jython bug is reported to http://bugs.jython.org/issue2527

Read more comments on GitHub >

github_iconTop Results From Across the Web

ytdl-org/youtube-dl: Command-line program to ... - GitHub
Command-line program to download videos from YouTube.com and other video sites - GitHub - ytdl-org/youtube-dl: Command-line program to download videos from ...
Read more >
youtube-dl · GitHub Topics
A basic implementation of youtube-dl in Android/Java. android java youtube-dl ... Android app for downloading media from YouTube with 4K Support (Beta).
Read more >
yausername/youtubedl-android: youtube-dl for android - GitHub
Set android:extractNativeLibs="true" in your app's manifest. Use abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a' in app/build.gradle ...
Read more >
yt-dlp/yt-dlp: A youtube-dl fork with additional features ... - GitHub
yt-dlp is a youtube-dl fork based on the now inactive youtube-dlc. The main focus of this project is adding new features and patches...
Read more >
youtube-dl-wrapper · GitHub Topics
Updated 2 days ago; Java ... NET wrapper library for youtube-dl and yt-dlp ... basic usage of https://github.com/rg3/youtube-dl Windows .exe releases.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found