Opened 15 years ago

Closed 15 years ago

#5908 closed patch (duplicate)

mythvideo can`t handle `'s in video files when using external player

Reported by: michael bishop <clever@…> Owned by: Anduin Withers
Priority: minor Milestone: unknown
Component: mythvideo Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

i noticed this bug with i had trouble playing some files where was used instead of ' for words like didnt
patching it was pretty simple

Index: mythplugins/mythvideo/mythvideo/metadata.cpp
===================================================================
--- mythplugins/mythvideo/mythvideo/metadata.cpp        (revision 18906)
+++ mythplugins/mythvideo/mythvideo/metadata.cpp        (working copy)
@@ -834,7 +834,7 @@
     QString handler = getPlayer(item);

     QString esc_fname =
-            QString(item->Filename()).replace(QRegExp("\""), "\\\"");
+            QString(item->Filename()).replace(QRegExp("\""), "\\\"").replace(QRegExp("`"), "\\`");
     QString arg = QString("\"%1\"").arg(esc_fname);

     QString command = "";

Change History (3)

comment:1 Changed 15 years ago by Anduin Withers

Component: mythtvmythvideo
Owner: changed from Isaac Richards to Anduin Withers

comment:2 Changed 15 years ago by Dibblah

Status: newassigned

comment:3 Changed 15 years ago by Anduin Withers

Resolution: duplicate
Status: assignedclosed

A duplicate of #5009

Note: See TracTickets for help on using tickets.