Ignore:
Timestamp:
Jun 21, 2018, 1:21:00 PM (13 months ago)
Author:
jrpelegrina
Message:

Fixed url that contain % in them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bell-scheduler/trunk/fuentes/n4d-bellscheduler.install/usr/share/n4d/python-plugins/BellSchedulerManager.py

    r7487 r7501  
    299299                                #cmd=cmd+" $(find"+ " '"+sound_path+"' -type f | shuf -n 1) "+fade_effects             
    300300                else:
    301                         cmd=cmd+ " $(youtube-dl -g "+sound_path+ " | sed -n 2p) "+fade_effects+self.cmd_remove_token
     301                        sound_path=sound_path.replace("%","\%")
     302                        cmd=cmd+ ' $(youtube-dl -g "'+sound_path+'" | sed -n 2p) '+fade_effects+self.cmd_remove_token
    302303                       
    303304                info_to_cron["BellScheduler"][key]["cmd"]=cmd
Note: See TracChangeset for help on using the changeset viewer.