mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 03:22:22 -05:00
0d9fbc1ad7
This version of SickBeard uses both TVDB and TVRage to search and gather it's series data from allowing you to now have access to and download shows that you couldn't before because of being locked into only what TheTVDB had to offer. Also this edition is based off the code we used in our XEM editon so it does come with scene numbering support as well as all the other features our XEM edition has to offer. Please before using this with your existing database (sickbeard.db) please make a backup copy of it and delete any other database files such as cache.db and failed.db if present, we HIGHLY recommend starting out with no database files at all to make this a fresh start but the choice is at your own risk! Enjoy!
67 lines
4.6 KiB
Plaintext
67 lines
4.6 KiB
Plaintext
{"tests": [
|
|
|
|
{"description": "no encoding",
|
|
"options": {"inject_meta_charset": true},
|
|
"input": [["StartTag", "http://www.w3.org/1999/xhtml", "head", {}], ["EndTag", "http://www.w3.org/1999/xhtml", "head"]],
|
|
"expected": [""],
|
|
"xhtml": ["<head></head>"]
|
|
},
|
|
|
|
{"description": "empytag head",
|
|
"options": {"inject_meta_charset": true, "encoding":"utf-8"},
|
|
"input": [["StartTag", "http://www.w3.org/1999/xhtml", "head", {}], ["EndTag", "http://www.w3.org/1999/xhtml", "head"]],
|
|
"expected": ["<meta charset=utf-8>"],
|
|
"xhtml": ["<head><meta charset=\"utf-8\" /></head>"]
|
|
},
|
|
|
|
{"description": "head w/title",
|
|
"options": {"inject_meta_charset": true, "encoding":"utf-8"},
|
|
"input": [["StartTag", "http://www.w3.org/1999/xhtml", "head", {}], ["StartTag", "http://www.w3.org/1999/xhtml","title",{}], ["Characters", "foo"],["EndTag", "http://www.w3.org/1999/xhtml", "title"], ["EndTag", "http://www.w3.org/1999/xhtml", "head"]],
|
|
"expected": ["<meta charset=utf-8><title>foo</title>"],
|
|
"xhtml": ["<head><meta charset=\"utf-8\" /><title>foo</title></head>"]
|
|
},
|
|
|
|
{"description": "head w/meta-charset",
|
|
"options": {"inject_meta_charset": true, "encoding":"utf-8"},
|
|
"input": [["StartTag", "http://www.w3.org/1999/xhtml", "head", {}], ["EmptyTag","meta",[{"namespace": null, "name": "charset", "value": "ascii"}]], ["EndTag", "http://www.w3.org/1999/xhtml", "head"]],
|
|
"expected": ["<meta charset=utf-8>"],
|
|
"xhtml": ["<head><meta charset=\"utf-8\" /></head>"]
|
|
},
|
|
|
|
{"description": "head w/ two meta-charset",
|
|
"options": {"inject_meta_charset": true, "encoding":"utf-8"},
|
|
"input": [["StartTag", "http://www.w3.org/1999/xhtml", "head", {}], ["EmptyTag","meta",[{"namespace": null, "name": "charset", "value": "ascii"}]], ["EmptyTag","meta",[{"namespace": null, "name": "charset", "value": "ascii"}]], ["EndTag", "http://www.w3.org/1999/xhtml", "head"]],
|
|
"expected": ["<meta charset=utf-8><meta charset=utf-8>", "<head><meta charset=utf-8><meta charset=ascii>"],
|
|
"xhtml": ["<head><meta charset=\"utf-8\" /><meta charset=\"utf-8\" /></head>", "<head><meta charset=\"utf-8\" /><meta charset=\"ascii\" /></head>"]
|
|
},
|
|
|
|
{"description": "head w/robots",
|
|
"options": {"inject_meta_charset": true, "encoding":"utf-8"},
|
|
"input": [["StartTag", "http://www.w3.org/1999/xhtml", "head", {}], ["EmptyTag","meta",[{"namespace": null, "name": "name", "value": "robots"},{"namespace": null, "name": "content", "value": "noindex"}]], ["EndTag", "http://www.w3.org/1999/xhtml", "head"]],
|
|
"expected": ["<meta charset=utf-8><meta content=noindex name=robots>"],
|
|
"xhtml": ["<head><meta charset=\"utf-8\" /><meta content=\"noindex\" name=\"robots\" /></head>"]
|
|
},
|
|
|
|
{"description": "head w/robots & charset",
|
|
"options": {"inject_meta_charset": true, "encoding":"utf-8"},
|
|
"input": [["StartTag", "http://www.w3.org/1999/xhtml", "head", {}], ["EmptyTag","meta",[{"namespace": null, "name": "name", "value": "robots"},{"namespace": null, "name": "content", "value": "noindex"}]], ["EmptyTag","meta",[{"namespace": null, "name": "charset", "value": "ascii"}]], ["EndTag", "http://www.w3.org/1999/xhtml", "head"]],
|
|
"expected": ["<meta content=noindex name=robots><meta charset=utf-8>"],
|
|
"xhtml": ["<head><meta content=\"noindex\" name=\"robots\" /><meta charset=\"utf-8\" /></head>"]
|
|
},
|
|
|
|
{"description": "head w/ charset in http-equiv content-type",
|
|
"options": {"inject_meta_charset": true, "encoding":"utf-8"},
|
|
"input": [["StartTag", "http://www.w3.org/1999/xhtml", "head", {}], ["EmptyTag","meta",[{"namespace": null, "name": "http-equiv", "value": "content-type"}, {"namespace": null, "name": "content", "value": "text/html; charset=ascii"}]], ["EndTag", "http://www.w3.org/1999/xhtml", "head"]],
|
|
"expected": ["<meta content=\"text/html; charset=utf-8\" http-equiv=content-type>"],
|
|
"xhtml": ["<head><meta content=\"text/html; charset=utf-8\" http-equiv=\"content-type\" /></head>"]
|
|
},
|
|
|
|
{"description": "head w/robots & charset in http-equiv content-type",
|
|
"options": {"inject_meta_charset": true, "encoding":"utf-8"},
|
|
"input": [["StartTag", "http://www.w3.org/1999/xhtml", "head", {}], ["EmptyTag","meta",[{"namespace": null, "name": "name", "value": "robots"},{"namespace": null, "name": "content", "value": "noindex"}]], ["EmptyTag","meta",[{"namespace": null, "name": "http-equiv", "value": "content-type"}, {"namespace": null, "name": "content", "value": "text/html; charset=ascii"}]], ["EndTag", "http://www.w3.org/1999/xhtml", "head"]],
|
|
"expected": ["<meta content=noindex name=robots><meta content=\"text/html; charset=utf-8\" http-equiv=content-type>"],
|
|
"xhtml": ["<head><meta content=\"noindex\" name=\"robots\" /><meta content=\"text/html; charset=utf-8\" http-equiv=\"content-type\" /></head>"]
|
|
}
|
|
|
|
]}
|