BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS "Channels" (
	"id"	INTEGER,
	"name"	TEXT NOT NULL,
	"url"	TEXT NOT NULL,
	"provider"	TEXT NOT NULL DEFAULT 'None',
	"lang"	TEXT NOT NULL DEFAULT 'ru',
	"vIndex"	INTEGER DEFAULT NULL,
	"group"	TEXT DEFAULT NULL,
	PRIMARY KEY("id" AUTOINCREMENT)
);
CREATE TABLE IF NOT EXISTS "Keys" (
	"id"	INTEGER,
	"channelId"	INTEGER NOT NULL,
	"kid"	TEXT DEFAULT NULL,
	"key"	TEXT,
	PRIMARY KEY("id" AUTOINCREMENT),
	FOREIGN KEY("channelId") REFERENCES "Channels"("id") ON DELETE CASCADE
);
INSERT INTO "Channels" ("id","name","url","provider","lang","vIndex","group") VALUES (4862,'ABC 7(WABC)-NY','http://51.81.107.170/hulu/o.php?chid=WABC&city=Nueva_York&chid=5eef27b2-9854-4b3c-8cbb-a9b55359e52b','HULU TV','en',6,NULL),
 (4863,'FOX 5(WNYW)-NY','http://51.81.107.170/hulu/o.php?chid=WNYW&city=Nueva_York&chid=5b7d8c94-863f-4bcc-88de-67f7a1873050','HULU TV','en',3,NULL),
 (4864,'NBC 4(WNBC)-NY','http://51.81.107.170/hulu/o.php?chid=WNBC&city=Nueva_York&chid=cea81fcd-a082-4ed4-999c-0de3402c8115','HULU TV','en',4,NULL),
 (4865,'TELEMUNDO 47(WNJU)-NY','http://51.81.107.170/hulu/o.php?chid=WNJU&city=Nueva_York&chid=4df34330-1bb8-4b9a-ab47-bf903166e935','HULU TV','en',4,NULL),
 (4866,'CW 11(WPIX)-NY','http://51.81.107.170/hulu/o.php?chid=WPIX&city=Nueva_York&chid=5a6986d3-723d-4a46-a086-e4125b5bc872','HULU TV','en',3,NULL),
 (4867,'MYTV9(WWOR)-NY','http://51.81.107.170/hulu/o.php?chid=WWOR&city=Nueva_York&chid=8c898804-e0f9-4e7f-b779-2a4dea8ae173','HULU TV','en',3,NULL),
 (4868,'CBS 2(WCBS)-NY','http://51.81.107.170/hulu/o.php?chid=WCBS&city=Nueva_York&chid=aa8876a0-e413-4e19-a3a3-4f33e68053dc','HULU TV','en',3,NULL),
 (4869,'ABC 10(WCBS)-MIAMI','http://51.81.107.170/hulu/o.php?chid=WPLG&city=Miami&chid=0af23ee4-69d2-4fa7-bbcf-408d91127d95','HULU TV','en',1,NULL),
 (4870,'FOX 7(WSVN)-MIAMI','http://51.81.107.170/hulu/o.php?chid=WSVN&city=Miami&chid=616db79d-acd8-43d4-9f2f-d40468646090','HULU TV','en',4,NULL),
 (4871,'NBC 6(WTVJ)-MIAMI','http://51.81.107.170/hulu/o.php?chid=WTVJ&city=Miami&chid=207d8f5f-f739-4947-8c7c-5a73ce9df6d5','HULU TV','en',3,NULL),
 (4872,'CBS 4(WFOR)-MIAMI','http://51.81.107.170/hulu/o.php?chid=WFOR&city=Miami&chid=4f829f2d-072d-414d-b373-fd7198bba078','HULU TV','en',3,NULL),
 (4873,'TELEMUNDO 51(WSCV)-MIAMI','http://51.81.107.170/hulu/o.php?chid=WSCV&city=Miami&chid=4cb2c47d-a323-4cf4-be70-cc5c89deda25','HULU TV','en',0,NULL),
 (4874,'PBS 17(WLRN)-MIAMI','http://51.81.107.170/hulu/o.php?chid=WLRN_Public_Media&city=Miami&chid=e372f82f-b843-46ff-be91-7f684daad314','HULU TV','en',3,NULL),
 (4875,'MYTV 33(WBFS)-MIAMI','http://51.81.107.170/hulu/o.php?chid=WBFS&city=Miami&chid=4d6ef3b1-3ede-424d-95a0-418c587406f5','HULU TV','en',3,NULL),
 (4876,'ABC 8(WFAA)-DALLAS','http://51.81.107.170/hulu/o.php?chid=WFAA&city=Dallas&chid=a4a958ae-6c1f-4cf6-9985-758066b5898d','HULU TV','en',2,NULL),
 (4877,'FOX 4(KDFW)-DALLAS','http://51.81.107.170/hulu/o.php?chid=KDFW&city=Dallas&chid=a72e5c49-7ebb-40b3-abf6-bfe32a1b57d8','HULU TV','en',5,NULL),
 (4878,'NBC 5(KXAS)-DALLAS','http://51.81.107.170/hulu/o.php?chid=KXAS&city=Dallas&chid=0b58dfd5-b385-4234-9289-e1a462933611','HULU TV','en',6,NULL),
 (4879,'CBS 11(KTVT)-DALLAS','http://51.81.107.170/hulu/o.php?chid=KTVT&city=Dallas&chid=d805951e-aa00-4469-b4b5-fb6aadbae3e5','HULU TV','en',3,NULL),
 (4880,'21(KTXA)-DALLAS','http://51.81.107.170/hulu/o.php?chid=KTXA&city=Dallas&chid=d04b765e-a2c4-4af8-affb-448ced833072','HULU TV','en',3,NULL),
 (4881,'MY27(KDFI)-DALLAS','http://51.81.107.170/hulu/o.php?chid=KDFI&city=Dallas&chid=76625bd3-d01c-4f4f-908d-082840ab1d2f','HULU TV','en',3,NULL),
 (4882,'TELEMUNDO 39(KXTX)-DALLAS','http://51.81.107.170/hulu/o.php?chid=KXTX&city=Dallas&chid=ff57b739-2ae1-4ca9-b3a7-32d68daf44b6','HULU TV','en',3,NULL),
 (4883,'ABC(KGNS)-LAREDO','http://51.81.107.170/hulu/o.php?chid=KGNS&city=Laredo&chid=776a0666-925e-4615-a2c8-3b80f5fe3428','HULU TV','en',6,NULL),
 (4884,'NBC 8(KGNS)-LAREDO','http://51.81.107.170/hulu/o.php?chid=KGNS&city=Laredo&chid=3dbc7f48-434f-49c5-8337-afcf952ab2e9','HULU TV','en',4,NULL),
 (4885,'TELEMUNDO(KGNS)-LAREDO','http://51.81.107.170/hulu/o.php?chid=KGNS&city=Laredo&chid=e55e1603-5df5-4a02-a9ac-199724247f9e','HULU TV','en',3,NULL),
 (4886,'CBS 13(KYLX)-LAREDO','http://51.81.107.170/hulu/o.php?chid=KYLX&city=Laredo&chid=1da55780-098a-4660-8c23-6fb2ea60569d','HULU TV','en',3,NULL),
 (4887,'FOX 31(KXOF)-LAREDO','http://51.81.107.170/hulu/o.php?chid=KXOF&city=Laredo&chid=499bf474-2deb-40bd-899e-efd6e1b722e4','HULU TV','en',6,NULL),
 (4888,'PBS 9(KLRN)-LAREDO','http://51.81.107.170/hulu/o.php?chid=KLRN&city=Laredo&chid=c1082f6f-d208-4b17-a874-f98ef5a9fa9b','HULU TV','en',4,NULL);
INSERT INTO "Keys" ("id","channelId","kid","key") VALUES (5806,4862,'a155c8c5557c4289b6ae67b16ed99b9e','8ec4f94b76b879cf8b1c632d919eef24'),
 (5810,4863,'71f639b3ffd74f53a619fd51366b021b','4c6eaf2699c05393d392f98ec6dd4869'),
 (5815,4866,'28a4e9f1f52d4739aca8b1dcf5a73ef4','0426ff693f554253e03d859acc60e633'),
 (5816,4865,'df996ca7a4364b97ae37e662589391ca','3c14998d9c6c1ba7205a572ba8e291c8'),
 (5817,4864,'8ed26a3de32745949b83ba25ad3985a4','0358bb59a489c5e3fa3a15f862d5121a'),
 (5819,4867,'63a39e634351497b91761ad2d06f6ea6','172b5565df9ffbea866be11082983599'),
 (5821,4868,'c12076aae21c43b3bff408cfb4b52f31','c25c2ef722311f83f69a25293ba1b6e4'),
 (5823,4869,'ba405b6643e74415b2df8f4197019c3b','68d3c4df19deb3db8e4705df55278450'),
 (5825,4870,'a7ad8768402740cf80399af27f6c37fd','de2b756e17578ec8d71c8293aad4acf2'),
 (5827,4871,'091cd5f1466b4ad0a4625f054809e5b1','a7eae075cd6da403f0666a61211dc74c'),
 (5829,4872,'8c52a7727ab24e7e80db940a57814172','696e9b263dbd411835d750a7689422ae'),
 (5831,4873,'61898f91010e47079aaaf6c1b6e9d631','eba973d1b6e6bebc58ba9f8dc1bc4ebb'),
 (5833,4874,'a9ea4669ef3140de82753f849261d17e','d3de1a5d70dc8d41e93a252164c3568a'),
 (5835,4875,'4ee36ed752674d2789fb821edaa1c576','28f148a71514aa1fe76946a226d0aa6e'),
 (5837,4876,'d81aa19944074de184635cabebeac182','af34ea31bed1dba3222d134b71efdd7b'),
 (5839,4877,'c22f35be2dd441a8b0b2b9df7adad655','6bdf18b70fca754e13fdd7c8444dea34'),
 (5841,4878,'f8faa11abf984ef895c1d139d528b661','c4d8a6dcb8d24d53caf2eae32285472b'),
 (5843,4879,'2ccadd9cc10745618fe6a2d99d47b7fa','f8a12f657c7aef5f1dd3dd5469fa03d1'),
 (5845,4880,'3f2f71e9a42b4a00a0de0dcd449acc45','b66ff680b31016cec59ff98daae3109f'),
 (5847,4881,'12e020d1b7784bc1b2f09e70765b8afe','f00f92790050111227deac704a4f2942'),
 (5849,4882,'025217e161044ba487fe1cfe30c13b7d','0a98e1f3ed6eb1c9a5b8e6fef950854d'),
 (5851,4883,'d16c4fa75ef74ed388de774d9f27d3d9','386f312d66e799a7f0eaed3f89345a61'),
 (5853,4884,'ee74b9612c5b4e868832b6b985d4da7e','e66a5dc3ed8f7c3151be4cfed555515d'),
 (5855,4885,'22c2248a14f64d409f2077537321784d','f186f354e8a234f988f84743af32f964'),
 (5857,4886,'4c90eee18b674481ac2dd19b92fc43d9','2c89a61a46eb57e39f94bedeb0747e69'),
 (5859,4887,'7d364e7191b74509849d6ae5b6c89b1b','6b3e04c6f3b3168e1800339ac56a3a4f'),
 (5861,4888,'d7708e3b891243ccb882834314d00eb1','93892a8b55f738b2489c65dd9654e922');
COMMIT;
