ecchi.iwara.tv metadata uploader being NA

See original GitHub issue

Checklist

  • [] I’m reporting a broken site support issue
  • I’ve verified that I’m running youtube-dl version 2020.03.01
  • I’ve checked that all provided URLs are alive and playable in a browser
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched the bugtracker for similar bug reports including closed ones
  • I’ve read bugs section in FAQ

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', '(mp4)[height<=1080][fps<=60]+(m4a/aac)/bestvideo+bestaudio/best', '--proxy=http://127.0.0.1:7777', '--external-downloader', 'aria2c', '--external-downloader-args', '-x5 -s5 -k 1M --file-allocation=trunc', '-o', '%(title)s [%(id)s][%(uploader)s].%(ext)s', '--yes-playlist', 'https://ecchi.iwara.tv/videos/z0y6puxqzqfkm7vre', '--no-check-certificate', '-v']
[debug] Encodings: locale cp936, fs utf-8, out utf-8, pref cp936
[debug] youtube-dl version 2020.03.01
[debug] Python version 3.6.6 (CPython) - Windows-10-10.0.10240-SP0
[debug] exe versions: ffmpeg 4.0.2, ffprobe 4.0.2, phantomjs 2.1.1
[debug] Proxy map: {'http': 'http://127.0.0.1:7777', 'https': 'http://127.0.0.1:7777'}
[Iwara] z0y6puxqzqfkm7vre: Downloading webpage
[Iwara] z0y6puxqzqfkm7vre: Downloading JSON metadata
[debug] Invoking downloader on 'https://ling.iwara.tv/file.php?expire=1583332380&hash=14947e72f69e3f85d6cfdd589ebde21cdc20ee0d&file=2019%2F03%2F12%2F1552384452_z0y6puXQZQFkm7vRE_Source.mp4&op=dl&r=0'
[download] 疑心暗鬼 [z0y6puxqzqfkm7vre][NA].mp4 has already been downloaded
[download] 100% of 105.55MiB

Description

Videos are downloaded successfully, but %(uploader)s is always replaced by NA (it’s part of my wanted filename format).

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
mo-hancommented, Jul 13, 2020

monkey patch version:

class YoutubeDLIwaraX(youtube_dl.extractor.iwara.IwaraIE, metaclass=ABCMeta):
    def _real_extract(self, url):
        html = get_html_element_tree(url)
        uploader = html.xpath('//div[@class="node-info"]//div[@class="submitted"]//a[@class="username"]')[0].text
        data = super(YoutubeDLIwaraX, self)._real_extract(url)
        data['uploader'] = uploader
        # print('#', 'uploader:', uploader)
        return data


def youtube_dl_main_x_iwara(argv=None):
    youtube_dl.extractor.IwaraIE = YoutubeDLIwaraX
    youtube_dl.main(argv)
0reactions
mo-hancommented, Jul 16, 2020

@ZYinMD That’s fine, me a half python noob and a total ps noob as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Iwara: Home
I want to get the model in the video · Pls someone do this · Looking for a video on ecchi · does...
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