Sha256: 8e375536cbcee09512b7db75f1362f2a0c1c138419ea4fb0419163fccc956276
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
# Youtube Converter for Ruby # Description: Downloads a file from a YT URL transcodes them to MP3 and places # it into a choosen folder # Module: Parses the configfile and imports the config # Work: This file contains some standard methods for YoutubeDlhelper # Class Documentation: # http://www.rubydoc.info/github/saigkill/youtube_dlhelper/Import # Copyright (C) 2013-2017 Sascha Manns <Sascha.Manns@mailbox.org> # Dependencies require 'parseconfig' # Module for Importing Informations module Import # This Module parses the youtube_dlhelper.conf # @return [Array] music_dir, ogg_file_accept, ffmpeg_binary def self.import_config home = Dir.home config = ParseConfig.new(File.join("#{home}/.youtube_dlhelper/youtube_dlhelper.conf")) # @note Saving the variable musiddir music_dir = config['musicdir'].to_s # @note Saving the variable ogg_file_accept ogg_file_accept = config['ogg_file_accept'].to_s # @note It returns a array with music_dir, ogg_file_accept, ffmpeg_binary [music_dir, ogg_file_accept] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
youtube_dlhelper-2.0.4 | lib/youtube_dlhelper/import_config.rb |