Skip to content
This repository has been archived by the owner on Jan 9, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Made some provider rule regexes stricter, deleted pownce
  • Loading branch information
Idan Gazit committed Jul 7, 2009
1 parent 99302a3 commit 42a5bb1
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions oembed/fixtures/initial_data.json
Expand Up @@ -3,7 +3,7 @@
"pk": 1,
"model": "oembed.providerrule",
"fields": {
"regex": "http://\\S*?flickr.com/\\S*",
"regex": "http://(?:www\\.)?flickr\\.com/photos/\\S+?/(?:sets/)?\\d+/?",
"endpoint": "http://www.flickr.com/services/oembed/",
"name": "Flickr",
"format": 1
Expand All @@ -29,16 +29,6 @@
"format": 1
}
},
{
"pk": 4,
"model": "oembed.providerrule",
"fields": {
"regex": "http://\\S*?pownce.com/\\S*",
"endpoint": "http://api.pownce.com/2.1/oembed.json",
"name": "Pownce",
"format": 1
}
},
{
"pk": 5,
"model": "oembed.providerrule",
Expand Down Expand Up @@ -113,7 +103,7 @@
"pk": 12,
"model": "oembed.providerrule",
"fields": {
"regex": "http://twitter.com/\\S*/statuses/\\S*",
"regex": "http://(?:www\\.)?twitter\\.com/(?:\\w{1,20})/statuses/\\d+/?",
"endpoint": "http://oohembed.com/oohembed/",
"name": "Twitter Status (OohEmbed)",
"format": 1
Expand All @@ -133,7 +123,7 @@
"pk": 14,
"model": "oembed.providerrule",
"fields": {
"regex": "http://\\S*.youtube.com/watch\\S*",
"regex": "http://(?:www\\.)?youtube\\.com/watch\\?v=[A-Za-z0-9\\-=_]{11}",
"endpoint": "http://oohembed.com/oohembed/",
"name": "YouTube (OohEmbed)",
"format": 1
Expand All @@ -143,7 +133,7 @@
"pk": 15,
"model": "oembed.providerrule",
"fields": {
"regex": "http://vimeo.com/\\S*",
"regex": "http://(?:www\\.)?vimeo\\.com/\\d+",
"endpoint": "http://vimeo.com/api/oembed.json",
"name": "Vimeo",
"format": 1
Expand Down

0 comments on commit 42a5bb1

Please sign in to comment.