Bugzilla – Attachment 55325 Details for
Bug 17231
HTML5MediaYouTube should recognize youtu.be links from youtube as well at the full links
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17231 - (QA Followup)
Bug-17231---QA-Followup.patch (text/plain), 995 bytes, created by
Jonathan Druart
on 2016-09-08 08:04:57 UTC
(
hide
)
Description:
Bug 17231 - (QA Followup)
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-09-08 08:04:57 UTC
Size:
995 bytes
patch
obsolete
>From 035ec59f3be20d31b860e25f52bbca2382e1a181 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 7 Sep 2016 13:03:43 +0000 >Subject: [PATCH] Bug 17231 - (QA Followup) > >Nicer grep > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > C4/HTML5Media.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/HTML5Media.pm b/C4/HTML5Media.pm >index 462f6b4..7f6dff6 100644 >--- a/C4/HTML5Media.pm >+++ b/C4/HTML5Media.pm >@@ -98,7 +98,7 @@ sub gethtml5media { > # src > if ( $HTML5Media_field->subfield('u') ) { > $HTML5Media{srcblock} = $HTML5Media_field->subfield('u'); >- if (grep /youtube|youtu[.]be/, $HTML5Media_field->subfield('u') ) { >+ if (grep /youtu\.?be/, $HTML5Media_field->subfield('u') ) { > if ($HTML5MediaYouTube == 1) { > require WWW::YouTube::Download; > import WWW::YouTube::Download qw(playback_url); >-- >2.8.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17231
:
55076
|
55091
|
55093
|
55298
|
55324
| 55325