clark15b / xupnpd2

eXtensible UPnP agent v.2 (official)
GNU General Public License v2.0
36 stars 15 forks source link

Fixed IP address octet in filename misinterpreted as extension #4

Closed killwort closed 5 years ago

killwort commented 5 years ago

When playlist contains udproxy url like http://176.50.104.6:1234/udp/225.54.23.95:5000 it doesn't appear in playlist's items as it is interpreted as a file with .95:5000 extension which cannot be handled by mime type parser. I've added second check to find last ':' in filename and if it appears after last '.' it prevents last url part parsing as filename (so it defaults to mp4 mime type)