0x1F602 / perlyoutube-dl

Perl Wrapper for the youtube-dl executable
GNU General Public License v2.0
0 stars 0 forks source link

Create manager class and executable #5

Open 0x1F602 opened 9 years ago

0x1F602 commented 9 years ago

The Manager class should use Parallel::ForkManager to run $max_jobs. It should also move the audio and video files into their respective directories. Ideally, it should add the ID3 tags with eyed3 python library, rather than AtomicParsley. It should also keep a sqlite3 store of all the audio/video files downloaded and locatable in the current library directory. Basically, trying to make a library for online media files. Could potentnially use git for tracking filesystem changes in the YTLibrary.

The binary should create a YTLibrary in the user's home directory. This should be used to

  1. store the database file (SQLite3 is sufficiently portable) in the directory
  2. detect a git filesystem for the YTLibrary, make one if its absent
  3. add each job executions changes to the library and database to a git commit
  4. detect similar titled audio/video files in the library and ask if user wants to force download
0x1F602 commented 9 years ago

Worked on adding parallelism via Parallel::ForkManager today Also added bin/* which includes ydl the executable, config.yml and download.yml as samples to work off of.