Menu

Tree [cbb07c] master /
 History

HTTPS access


File Date Author Commit
 .circleci 2023-10-22 weshatheleopard weshatheleopard [105c3f] Set up tests
 .github 2024-05-06 weshatheleopard weshatheleopard [0c916f] Attempt to configure Github Actions for test
 lib 2024-09-15 weshatheleopard weshatheleopard [cbb07c] Display intermittent errors when downloading; e...
 spec 2024-05-06 weshatheleopard weshatheleopard [bff617] Fix Rubocop complaints
 .gitignore 2022-09-01 weshatheleopard weshatheleopard [aad20b] Read configuration from the config file
 .rubocop.yml 2024-05-06 weshatheleopard weshatheleopard [bff617] Fix Rubocop complaints
 Gemfile 2024-07-30 weshatheleopard weshatheleopard [9eb27d] Updated Mechanize with version that supports Br...
 Gemfile.lock 2024-08-20 weshatheleopard weshatheleopard [5c3d51] Update gems
 LICENSE 2022-09-01 weshatheleopard weshatheleopard [668325] Initial commit
 README.md 2024-07-01 weshatheleopard weshatheleopard [43964e] Added Platforma video hosting
 Rakefile 2024-05-06 weshatheleopard weshatheleopard [22937b] Some cleanup
 config.yml.sample 2023-11-26 weshatheleopard weshatheleopard [8e7dae] Moved temp dir location to TEMPDIR config setti...
 dl 2024-05-06 weshatheleopard weshatheleopard [22937b] Some cleanup

Read Me

rutube-downloader-ruby

alt text

Download video files from the sites that generally don't want you to download videos from.

Currently supported:
* Dzen [NEW only]
* Fox News [OLD only]
* Twitch
* 1TV [NEW only]
* Platforma [NEW only]
* Rambler News
* RuTube
* Smotrim
* TV Zvezda

Others can be added too through respective subclasses

How to use:

Most downloaders have been moved to support both video file URL and main video page URL, which makes downloading more user-friendly. Old method still works.

NEW mehod

Option 1 (shell):

  1. In the system shell, execute dl script with the URL of the webpage where the video is located (./dl http://video.site/breaking-news-654321)

Option 2 (Ruby console):

  1. Launch the console of this project (rake console)
  2. Launch the code with the URL of the webpage where video is located (dl 'http://video.site/breaking-news-654321')

OLD method (still works!)

  1. Start watching the desired video
  2. Using Firefox's Developer Tools (invoked by F12), in the Network tab, set filter to "Media". Watch the .ts files being downloaded.
  3. Copy the URL of any of such file

Option 1 (shell):

  1. In the system shell, execute dl script with the URL obtained at the step above (./dl http://......long_video_file_url......)

Option 2 (Ruby console):

  1. Launch the console of this project (rake console)
  2. Launch the code with the URL obtained at the step above (dl 'http://......long_video_file_url........')

The code will automatically detect the total number of segments in the video and download them all. It will also create the Windows BAT file for ffmpeg to join all these segments into a single video file.

Named parameters (console only):

  • start - start downloading with this segment number
  • endno - finish downloading with this segment number (otherwise perform automatic detection)

File assembly

Result file can now be assembled from chunks on the system doing the downloading. In that case, ffmpeg has to be installed on that system:

sudo apt-get install ffmpeg

In that case, only the final file will be uploaded. This is controlled by the combine: named parameter of the call to dl in console.

Temporary files are now stored in /tmp and deleted upon successful uploading.