Class: MediaJugg
- Inherits:
-
Object
- Object
- MediaJugg
- Extended by:
- BaseMethods
- Defined in:
- lib/media_jugg.rb,
lib/media_jugg/base_methods.rb
Defined Under Namespace
Modules: BaseMethods
Class Method Summary collapse
Methods included from BaseMethods
Class Method Details
.audio(url) ⇒ Object
6 7 8 |
# File 'lib/media_jugg.rb', line 6 def audio(url) dlp_runner(url, '-x', '--audio-format', 'mp3') end |
.video(url) ⇒ Object
10 11 12 |
# File 'lib/media_jugg.rb', line 10 def video(url) dlp_runner(url, 'f', 'bestvideo[ext=mp4]+bestaudio[ext=m4a]', '-S', 'vcodec:h264') end |