Skip to content

Commit

Permalink
Change in lib/ektoplayer/trackloader.rb
Browse files Browse the repository at this point in the history
Use `CGI.unescapeURIComponent()` instead of `URI.unescape()`
  • Loading branch information
braph committed Jul 21, 2024
1 parent a3607f3 commit 3f7e44d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ektoplayer/trackloader.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'fileutils'
require 'uri'
require 'cgi'

require_relative 'common'

Expand Down Expand Up @@ -27,7 +28,7 @@ def get_track_infos(url)
@database.get_archives(url).select {|_|_['archive_type'] == 'MP3'}[0]
)

r['archive_filename'] = URI.unescape(r['archive_url'])
r['archive_filename'] = CGI.unescapeURIComponent(r['archive_url'])
r['archive_basename'] = File.basename(r['archive_filename'], '.zip')
r['album_path'] = File.join(Config[:archive_dir], r['archive_basename'])
r
Expand Down

0 comments on commit 3f7e44d

Please sign in to comment.