primaeval / plugin.video.iptv.recorder

GNU General Public License v3.0
43 stars 28 forks source link

Failure to record a program when there is a '/' character in the program name #13

Open johanburati opened 5 years ago

johanburati commented 5 years ago

I am using iptv.recorder version 0.0.73 on Linux. When trying to record a program with a '/' character in the program name it fails because the slash is a directory separator in Linux.

For example if the program name is "Team1 / Team2 - SPORTS2 - 2018-09-29 18-00" ffmpeg will think the "Team1 " part is a directory and will fail to save the file: /tmp/Team1 / Team2 - SPORTS2 - 2018-09-29 18-00.ts: No such file or directory

I tried to use the filename.urlencode to true but the urllib.quote does not convert the '/' character.

I made a commit to replace the '/' character with %2F in all cases, please review and merge.

primaeval commented 5 years ago

Thanks. It's in 0.0.74.