Project

hktv

0.0
No commit activity in last 3 years
No release in over 3 years
Command line utilities to find and download HKTV videos.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 0
~> 10.0
~> 0
~> 0

Runtime

>= 4.2.1, ~> 4.2
>= 0.13.1, ~> 0.13
>= 1.4.1, ~> 1.4
 Project Readme

HKTV

Command line utilities to find and download HKTV videos.

Installation

Add this line to your application's Gemfile:

gem 'hktv'

And then execute:

$ bundle

Or install it via:

$ gem install hktv

Prerequisite

  • Ruby 2.x
  • Only tested on OS X Yosemite, it may work on Linux.
  • Requries ffmpeg for combine video.

Usage

Login to HKTV

Login to HKTV. This is required for download video.

$ hktv login

List all video of HKTV

Print a comma sepeated list of programs.

$ hktv list "選戰"
選戰 第1集 第1節
選戰 第1集 第2節
...
選戰 第7集 第3節
選戰 第7集 第4節

Download an Episode

Download all video files of an episode, and merge them into single file.

$ hktv download "選戰 第7集"
Downloading: 選戰 第7集 第1節
Downloading: 選戰 第7集 第2節
Downloading: 選戰 第7集 第3節
Downloading: 選戰 第7集 第4節
Merge videos into 選戰_第7集.mp4

Contributing

  1. Fork it ( https://github.com/siuying/ruby-hktv/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request