You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
809 B
35 lines
809 B
14 years ago
|
from couchpotato.core.providers.userscript.base import UserscriptBase
|
||
14 years ago
|
|
||
|
|
||
14 years ago
|
class AlloCine(UserscriptBase):
|
||
14 years ago
|
|
||
|
includes = ['http://www.allocine.fr/film/*']
|
||
|
|
||
|
#CouchPotato['allocine.fr'] = (function(){
|
||
|
#
|
||
|
# function isMovie(){
|
||
|
# var pattern = /fichefilm_gen_cfilm=\d+?\.html$/;
|
||
|
# matched = location.href.match(pattern);
|
||
|
# return null != matched;
|
||
|
# }
|
||
|
#
|
||
|
# function getId() {
|
||
|
# var name = document.title.substr(0, document.title.indexOf(" -")).replace(/ /g, "+");
|
||
|
# lib.search(name, getYear())
|
||
|
# }
|
||
|
#
|
||
|
# function getYear(){
|
||
|
# var year = new RegExp("\\d{4}", document.title)
|
||
|
# return year;
|
||
|
# }
|
||
|
#
|
||
|
# function constructor(){
|
||
|
# if(isMovie()){
|
||
|
# lib.osd(getId(), getYear());
|
||
|
# }
|
||
|
# }
|
||
|
#
|
||
|
# return constructor;
|
||
|
#
|
||
|
#})();
|