[mythtv-users] "Internal Server Error" for specific recordings only from specific channels

Miroslav Pavlovic mail.pavlovic at gmail.com
Wed Dec 11 15:12:57 UTC 2019


Havent got the time to test it yet.
But I have raised a Ticket :
https://code.mythtv.org/trac/ticket/13535#ticket

Will report, when I try it.

Thanks!
Cheers,
Miro



Am Mo., 2. Dez. 2019 um 18:18 Uhr schrieb Douglas Paul <doug at bogon.ca>:

> Hello,
>
> On Mon, Dec 02, 2019 at 05:43:34PM +0100, Miroslav Pavlovic wrote:
> > ok, me again...
> >
> > Is this a Bug ?
> > I mean, that mythweb is adding the newlines into the table ?
> > I do not have an account for raising Bugs.
> >
> > Any idea?
>
> I don't think mythweb is inserting the bad data in the database.
>
> To me, this seems to be a bug in two places:
>  1) EIT (I assume that's where the program info is coming from) -- it
>     probably should sanitize things before it puts them in the database
>  2) Mythweb - should be more robust against questionable data in the
>     database
>
> I don't use either so I can't really recommend a good fix or test one.
>
> You should be able to create an account to raise a bug.
>
> Using grep, it seems to me the issue you are hitting is in
> mythweb/modules/stream/stream_asx.pl in mythweb (because in the other
> cases, there is whitespace around the - between title and subtitle).
>
> You might be able to hack it to sanitize the suggested filename a bit in
> that file -- you might need to adjust the other scripts too though.
>
> Something like this may work: (completely untested)
>
> # Print out the HTML headers and the ASX file itself
> ## *add this*
> $title =~ s/\W/_/g;
> $subtitle =~ s/\W/_/g;
> ## *end add this*
> print header(-type                => 'video/x-ms-asf',
>                 -Content_length      => length($file),
>                 -Content_disposition => " attachment;
> filename=\"$title-$subtitle.asx\"",
>                 ),
>             $file;
>
> --
> Douglas Paul
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20191211/52e2aeb9/attachment.htm>


More information about the mythtv-users mailing list