Merge lp:~axlrose112/midori/webmedia-now-playing_update into lp:midori

Proposed by axlrose112
Status: Merged
Approved by: Cris Dywan
Approved revision: 6901
Merged at revision: 6902
Proposed branch: lp:~axlrose112/midori/webmedia-now-playing_update
Merge into: lp:midori
Diff against target: 31 lines (+4/-4)
1 file modified
extensions/webmedia-now-playing.vala (+4/-4)
To merge this branch: bzr merge lp:~axlrose112/midori/webmedia-now-playing_update
Reviewer Review Type Date Requested Status
Cris Dywan Approve
Review via email: mp+253766@code.launchpad.net

Commit message

Update coub support in mediaHerald

Description of the change

Update Coub

To post a comment you must log in.
Revision history for this message
Cris Dywan (kalikiana) wrote :

Nice!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'extensions/webmedia-now-playing.vala'
--- extensions/webmedia-now-playing.vala 2015-02-19 19:24:41 +0000
+++ extensions/webmedia-now-playing.vala 2015-03-21 22:39:24 +0000
@@ -18,7 +18,7 @@
18 string web_media_title { get; set; }18 string web_media_title { get; set; }
19 internal Manager () {19 internal Manager () {
20 GLib.Object (name: _("Webmedia now-playing"),20 GLib.Object (name: _("Webmedia now-playing"),
21 description: _("Share 'youtube, vimeo, dailymotion' that you are playing in Midori using org.midori.mediaHerald"),21 description: _("Share 'youtube, vimeo, dailymotion, coub and zippcast' that you are playing in Midori using org.midori.mediaHerald"),
22 version: "0.1" + Midori.VERSION_SUFFIX,22 version: "0.1" + Midori.VERSION_SUFFIX,
23 authors: "James Axl <axlrose112@gmail.com>");23 authors: "James Axl <axlrose112@gmail.com>");
24 activate.connect (this.activated);24 activate.connect (this.activated);
@@ -36,7 +36,7 @@
36 var youtube = new Regex("""(http|https)://www.youtube.com/watch\?v=[&=_\-A-Za-z0-9.\|]+""");36 var youtube = new Regex("""(http|https)://www.youtube.com/watch\?v=[&=_\-A-Za-z0-9.\|]+""");
37 var vimeo = new Regex("""(http|https)://vimeo.com/[0-9]+""");37 var vimeo = new Regex("""(http|https)://vimeo.com/[0-9]+""");
38 var dailymotion = new Regex("""(http|https)://www.dailymotion.com/video/[_\-A-Za-z0-9]+""");38 var dailymotion = new Regex("""(http|https)://www.dailymotion.com/video/[_\-A-Za-z0-9]+""");
39 var coud = new Regex("""(http|https)://coub.com/view/[&=_\-A-Za-z0-9.\|]+""");39 var coub = new Regex("""(http|https)://coub.com/view/[&=_\-A-Za-z0-9.\|]+""");
40 var zippcast = new Regex("""(http|https)://www.zippcast.com/video/[&=_\-A-Za-z0-9.\|]+"""); 40 var zippcast = new Regex("""(http|https)://www.zippcast.com/video/[&=_\-A-Za-z0-9.\|]+""");
41 41
42 string website = null;42 string website = null;
@@ -49,8 +49,8 @@
49 website = "Vimeo";49 website = "Vimeo";
50 else if (dailymotion.match(web_media_uri))50 else if (dailymotion.match(web_media_uri))
51 website = "Dailymotion";51 website = "Dailymotion";
52 else if (coud.match(web_media_uri))52 else if (coub.match(web_media_uri))
53 website = "Coud";53 website = "Coub";
54 else if (zippcast.match(web_media_uri))54 else if (zippcast.match(web_media_uri))
55 website = "ZippCast"; 55 website = "ZippCast";
5656

Subscribers

People subscribed via source and target branches

to all changes: