Firsttv extractor doesn't work #7413

Closed
opened 2026-02-21 03:38:10 -05:00 by deekerman · 0 comments
Owner

Originally created by @serejk on GitHub (Apr 7, 2016).

Firsttv provider doesn`t work as for now. Maybe they changed video backend or like that. Anyway, test urls fail to download:

youtube-dl http://www.1tv.ru/videoarchive/73390
[1tv] 73390: Downloading page
ERROR: Unable to extract video URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

I has my own code to download that videos from new backend (PHP, i`m not good in Python, unfortunately).

class First
{
    public $title;
    public $link;
    public $url;
    public function __construct($url)
    { 
        $api = 'www.1tv.ru/owa/win/ONE_ONLINE_VIDEOS.archive_single_xml?pid=';

        $tokens = explode('/', $url);
        $pid = end($tokens);
        /* Fix for Urgant show, contains 'p' before pid */
        $pid = ltrim($pid, 'p');

        $item = simplexml_load_string(get($api.$pid))->channel->item;
        $this->title = current($item->title);
        $this->link  = current($item->link);
        if ( false !== $media = $item->children('media', true) ) {
            $this->url = current($media->content->attributes()['url']);
        }
    }

It is in PHP, but idea is pretty clear. Using this video title and direct url can be extracted. For example, for test video above direct link is

http://redirect.1internet.tv/promorolik/2014/02/olimp-DU-20140210-02.mp4

get() function is a simple curl wrapper to download content by url.

Originally created by @serejk on GitHub (Apr 7, 2016). Firsttv provider doesn`t work as for now. Maybe they changed video backend or like that. Anyway, test urls fail to download: ``` shell youtube-dl http://www.1tv.ru/videoarchive/73390 [1tv] 73390: Downloading page ERROR: Unable to extract video URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. ``` I has my own code to download that videos from new backend (PHP, i`m not good in Python, unfortunately). ``` php class First { public $title; public $link; public $url; public function __construct($url) { $api = 'www.1tv.ru/owa/win/ONE_ONLINE_VIDEOS.archive_single_xml?pid='; $tokens = explode('/', $url); $pid = end($tokens); /* Fix for Urgant show, contains 'p' before pid */ $pid = ltrim($pid, 'p'); $item = simplexml_load_string(get($api.$pid))->channel->item; $this->title = current($item->title); $this->link = current($item->link); if ( false !== $media = $item->children('media', true) ) { $this->url = current($media->content->attributes()['url']); } } ``` It is in PHP, but idea is pretty clear. Using this video title and direct url can be extracted. For example, for test video above direct link is ``` shell http://redirect.1internet.tv/promorolik/2014/02/olimp-DU-20140210-02.mp4 ``` `get()` function is a simple curl wrapper to download content by url.
deekerman 2026-02-21 03:38:10 -05:00
  • closed this issue
  • added the
    broken-IE
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#7413
No description provided.