plugin.video.iptv.recorder icon indicating copy to clipboard operation
plugin.video.iptv.recorder copied to clipboard

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

Open johanburati opened this issue 7 years ago • 1 comments

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.

johanburati avatar Sep 29 '18 05:09 johanburati

Thanks. It's in 0.0.74.

primaeval avatar Sep 29 '18 06:09 primaeval