Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
fix!: remove defunct MetroLyrics
Browse files Browse the repository at this point in the history
  • Loading branch information
timbru31 committed Jul 30, 2021
1 parent b514231 commit ea396d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mp3lyrics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def usage_message(override_options, use_options)
end

override_options = [true, false]
use_options = %w[genius metrolyrics azlyrics]
use_options = %w[genius azlyrics]

if ARGV.length.even? ||
ARGV.count('-override') > 1 ||
Expand Down Expand Up @@ -91,7 +91,6 @@ def usage_message(override_options, use_options)
if !mp3.hastag2? || (mp3.hastag2? && !mp3.tag2.key?('USLT')) || override
lyrics = nil
lyrics = Genius.new.get_lyrics(artist, title) if wiki_to_use.nil? || wiki_to_use == 'genius'
lyrics = MetroLyrics.new.get_lyrics(artist, title) if (wiki_to_use.nil? || wiki_to_use == 'metrolyrics') && lyrics.nil?
lyrics = AZLyrics.new.get_lyrics(artist, title) if (wiki_to_use.nil? || wiki_to_use == 'azlyrics') && lyrics.nil?
if lyrics.nil?
puts "Did not find any lyrics\n\r"
Expand Down

0 comments on commit ea396d9

Please sign in to comment.