Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/Noembed/Provider/TickCounter.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package Noembed::Provider::TickCounter;

use parent 'Noembed::oEmbedProvider';

sub provider_name {"TickCounter"}
sub patterns {'https?://www\.tickcounter\.com/(countdown|countup|ticker|worldclock)/.+'}
sub oembed_url {'https://www.tickcounter.com/oembed'}

1;
1 change: 1 addition & 0 deletions share/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ <h3>Other</h3>
<li>Wikipedia</li>
<li>XKCD</li>
<li>YouTube</li>
<li>TickCounter</li>
</ul>
<h3>Existing oEmbed Sites</h3>
<ul>
Expand Down
20 changes: 20 additions & 0 deletions share/providers.json
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,26 @@
}
]
},
{
"provider_name": "TickCounter",
"provider_url": "https:\/\/www.tickcounter.com\/",
"endpoints": [
{
"schemes": [
"http:\/\/www.tickcounter.com\/countdown\/*",
"http:\/\/www.tickcounter.com\/countup\/*",
"http:\/\/www.tickcounter.com\/ticker\/*",
"http:\/\/www.tickcounter.com\/worldclock\/*",
"https:\/\/www.tickcounter.com\/countdown\/*",
"https:\/\/www.tickcounter.com\/countup\/*",
"https:\/\/www.tickcounter.com\/ticker\/*",
"https:\/\/www.tickcounter.com\/worldclock\/*"
],
"url": "https:\/\/www.tickcounter.com\/oembed",
"discovery": true
}
]
},
{
"provider_name": "Topy",
"provider_url": "http:\/\/www.topy.se\/",
Expand Down