Skip to content

Commit

Permalink
tests: fix sverigesradio
Browse files Browse the repository at this point in the history
  • Loading branch information
iparamonau committed Jan 15, 2025
1 parent 511c444 commit 45e2011
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions plugins/domains/sverigesradio.se.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export default {

re: [
/^https?:\/\/sverigesradio\.se\/sida\/(artikel)\.aspx\?programid=\d+&artikel=(\d+)/i,
/^https?:\/\/sverigesradio\.se\/(artikel)\/(\d+)\/?(?:\?.+)?$/i,
/^https?:\/\/sverigesradio\.se\/(artikel)\/([^\/]+)(?:\?.+)?$/i,
/^https?:\/\/sverigesradio\.se\/embed\/(publication|episode)\/(\d+)/i,
/^https?:\/\/sverigesradio\.se\/(avsnitt)\/(\d+)\/?(?:\?.+)?$/i,
/^https?:\/\/sverigesradio\.se\/(avsnitt)\/([^\/]+)(?:\?.+)?$/i,
/^https?:\/\/(?:www\.)?sverigesradio\.se\/sida\/(artikel)\.aspx\?programid=\d+&artikel=(\d+)/i,
/^https?:\/\/(?:www\.)?sverigesradio\.se\/(artikel)\/(\d+)\/?(?:\?.+)?$/i,
/^https?:\/\/(?:www\.)?sverigesradio\.se\/(artikel)\/([^\/]+)(?:\?.+)?$/i,
/^https?:\/\/(?:www\.)?sverigesradio\.se\/embed\/(publication|episode)\/(\d+)/i,
/^https?:\/\/(?:www\.)?sverigesradio\.se\/(avsnitt)\/(\d+)\/?(?:\?.+)?$/i,
/^https?:\/\/(?:www\.)?sverigesradio\.se\/(avsnitt)\/([^\/]+)(?:\?.+)?$/i,
],

provides: 'sveriges',
Expand Down
3 changes: 1 addition & 2 deletions plugins/links/hosted/libsyn-hosted.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export default {
tests: [
"http://trendfollowingradio.com/episode-1-the-trend-following-manifesto-with-michael-covel",
"http://coloristpodcast.com/episode-005-terence-curren", // No oembed autodiscovery on canonical
"http://whos-he-podcast.co.uk/whos-he-podcast-274",
"http://heartfeldt.spinninpodcasts.com/heartfeldt-radio-76", // No oembed autodiscovery on canonical
"http://whos-he-podcast.co.uk/whos-he-podcast-274"
]
};

0 comments on commit 45e2011

Please sign in to comment.