[Koha-bugs] [Bug 17231] HTML5MediaYouTube should recognize youtu.be links from youtube as well at the full links

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 7 15:42:55 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17231

--- Comment #13 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Nick Clemens from comment #12)
> > @@ +109,5 @@
> > > +                                'fmt' => '43' #webm is the only format compatible to all modern browsers. maybe check for available qualities
> > > +                            }
> > > +                        );
> > > +                    };
> > > +                    if ($@) { warn $@; }
> > 
> > What kind of errors do you handle here?
> if an URL contains 'youtube' but isn't a www.youtube.com link the downloader
> will fail - this way it fails nicer - something like this:
> http://www.nytimes.com/topic/company/youtube

So should not we test the regex from ^?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list