Last active
December 12, 2015 02:48
-
-
Save raecoo/4701955 to your computer and use it in GitHub Desktop.
sample xml template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- all channels(approved) of the platform --> | |
| <?xml version="1.1" encoding="UTF-8"?> | |
| <channels> | |
| <channel> | |
| <name>网星电视</name> | |
| <icon></icon> | |
| <url>http://rokucndev.s3.amazonaws.com/channel-v.xml</url> | |
| </channel> | |
| </channels> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- for every category --> | |
| <?xml version="1.1" encoding="UTF-8"?> | |
| <category> | |
| <name>电影</name> | |
| <lived>false</lived> | |
| <!-- leaf node does not contain <children> tag --> | |
| <children> | |
| <category> | |
| <name>科幻</name> | |
| <video_url>http://rokucndev.s3.amazonaws.com/channel-v-category-23.xml</video_url> | |
| </category> | |
| <category> | |
| <name>恐怖</name> | |
| <video_url>http://rokucndev.s3.amazonaws.com/channel-v-category-29.xml</video_url> | |
| </category> | |
| </children> | |
| <videos> | |
| <video> | |
| <name>一路向西(成人)</name> | |
| <icon>http://rokucndev.s3.amazonaws.com/124.jpg</icon> | |
| <video_url>http://www.youtube.com/watch?v=CsEgcd6PROE</video_url> | |
| </video> | |
| <video> | |
| <name>一九四二</name> | |
| <icon>http://img3.douban.com/spic/s10385440.jpg</icon> | |
| <video_url>http://www.youtube.com/watch?v=FCeyTzhPwks</video_url> | |
| </video> | |
| <video> | |
| <name>十二生肖</name> | |
| <icon>http://img3.douban.com/spic/s24519706.jpg</icon> | |
| <video_url>http://www.youtube.com/watch?v=skYW49GSerY</video_url> | |
| </video> | |
| </videos> | |
| </category> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- for every channel --> | |
| <?xml version="1.1" encoding="UTF-8"?> | |
| <channel> | |
| <name>网星电视</name> | |
| <subdomain>v</subdomain> | |
| <allow_voting>false</allow_voting> | |
| <notification_email>raecoo@gmail.com</notification_email> | |
| <!-- use for top menu categories --> | |
| <top_categories> | |
| <category> | |
| <name>电视</name> | |
| <video_url>http://rokucndev.s3.amazonaws.com/channel-v-category-1.xml</video_url> | |
| </category> | |
| <category> | |
| <name>电影</name> | |
| <video_url>http://rokucndev.s3.amazonaws.com/channel-v-category-2.xml</video_url> | |
| </category> | |
| </top_categories> | |
| <!-- the categories on side of channel landing screen --> | |
| <side_categories> | |
| <category> | |
| <name>popular</name> | |
| <icon></icon> | |
| <video_url>http://rokucndev.s3.amazonaws.com/channel-v-category-popular.xml</video_url> | |
| </category> | |
| <category> | |
| <name>recently</name> | |
| <icon></icon> | |
| <video_url>http://rokucndev.s3.amazonaws.com/channel-v-category-recently.xml</video_url> | |
| </category> | |
| <category> | |
| <name>year</name> | |
| <icon></icon> | |
| <video_url>http://rokucndev.s3.amazonaws.com/channel-v-category-year.xml</video_url> | |
| </category> | |
| <category> | |
| <name>rank</name> | |
| <icon></icon> | |
| <video_url>http://rokucndev.s3.amazonaws.com/channel-v-category-rank.xml</video_url> | |
| </category> | |
| <category> | |
| <name>bad</name> | |
| <icon></icon> | |
| <video_url>http://rokucndev.s3.amazonaws.com/channel-v-category-bad.xml</video_url> | |
| </category> | |
| </side_categories> | |
| <!-- the first screen videos for grid layout --> | |
| <videos> | |
| <video> | |
| <name>后宫·甄嬛传</name> | |
| <icon>http://img3.douban.com/spic/s7034194.jpg</icon> | |
| <video_url>http://rokucndev.s3.amazonaws.com/channel-v-video-180.xml</video_url> | |
| </video> | |
| <video> | |
| <name>人在囧途</name> | |
| <icon>http://img3.douban.com/spic/s4381006.jpg</icon> | |
| <video_url>http://www.youtube.com/watch?v=_BYWDEEo-i4</video_url> | |
| </video> | |
| <video> | |
| <name>天津闲人</name> | |
| <icon>http://img3.douban.com/spic/s22714772.jpg</icon> | |
| <video_url>http://www.youtube.com/watch?v=kfSxCPPyTUU</video_url> | |
| </video> | |
| </videos> | |
| </channel> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- for every video --> | |
| <?xml version="1.1" encoding="UTF-8"?> | |
| <video> | |
| <name><![CDATA[ 后宫·甄嬛传 ]]></name> | |
| <icon>http://img3.douban.com/spic/s7034194.jpg</icon> | |
| <multiple>true</multiple> | |
| <episodes> | |
| <video> | |
| <name> | |
| <![CDATA[ 1 ]]> | |
| </name> | |
| <icon_url>http://i.ytimg.com/vi/OiqcsUS32YE/hqdefault.jpg</icon_url> | |
| <track_url>http://v.netstartv.dev/watch/4.json</track_url> | |
| <error_url> | |
| http://v.netstartv.dev/videos/4/report_problem?index=0 | |
| </error_url> | |
| <video_url>http://www.youtube.com/watch?v=OiqcsUS32YE</video_url> | |
| </video> | |
| <video> | |
| <name> | |
| <![CDATA[ 2 ]]> | |
| </name> | |
| <icon_url>http://i.ytimg.com/vi/6z9HslOtO5w/hqdefault.jpg</icon_url> | |
| <track_url>http://v.netstartv.dev/watch/4.json</track_url> | |
| <error_url> | |
| http://v.netstartv.dev/videos/4/report_problem?index=1 | |
| </error_url> | |
| <video_url>http://www.youtube.com/watch?v=6z9HslOtO5w</video_url> | |
| </video> | |
| <video> | |
| <name> | |
| <![CDATA[ 3 ]]> | |
| </name> | |
| <icon_url>http://i.ytimg.com/vi/_taJFbLHfqI/hqdefault.jpg</icon_url> | |
| <track_url>http://v.netstartv.dev/watch/4.json</track_url> | |
| <error_url> | |
| http://v.netstartv.dev/videos/4/report_problem?index=2 | |
| </error_url> | |
| <video_url>http://www.youtube.com/watch?v=_taJFbLHfqI</video_url> | |
| </video> | |
| </episodes> | |
| </video> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment