Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Starting a Tudou plugin.

  • Loading branch information...
commit ea1340d81f37de72f6fd35dc7c09a88c3a5be25e 1 parent 13633ee
@mpdaugherty authored
View
9 plugins/Tudou.bundle/Contents/Code/__init__.py
@@ -0,0 +1,9 @@
+@handler('/video/tudou', 'Tudou')
+def Main():
+ oc = ObjectContainer(
+ objects = [
+ MovieObject(url = 'http://js.tudouui.com/bin/contentplayer/focus_player_19.swf?iid=99158782',
+ title = 'Test Movie')
+ ]
+ )
+ return oc
View
0  plugins/Tudou.bundle/Contents/DefaultPrefs.json
No changes.
View
30 plugins/Tudou.bundle/Contents/Info.plist
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//END" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleIdentifier</key>
+ <string>com.mpdaugherty.plex.plugins.tudou</string>
+ <key>PlexPluginClass</key>
+ <string>Channel</string>
+ <key>PlexPluginMode</key>
+ <string>AlwaysOn</string>
+ <key>PlexAudioCodec</key>
+ <array>
+ <string>MP3</string>
+ <string>AAC</string>
+ </array>
+ <key>PlexClientPlatforms</key>
+ <string>MacOSX,iOS,Android,LGTV</string>
+ <key>PlexFrameworkVersion</key>
+ <string>2</string>
+ <key>PlexMediaContainer</key>
+ <array>
+ <string>M4V</string>
+ <string>MOV</string>
+ </array>
+ <key>PlexVideoCodec</key>
+ <array>
+ <string>H.264</string>
+ </array>
+</dict>
+</plist>
View
0  plugins/Tudou.bundle/Contents/VERSION
No changes.
View
22 scripts/start_plugin
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+SCRIPTPATH=`dirname $0`
+
+if [ ! $1 ]
+then
+ echo 'Usage:'
+ echo ' start_plugin <plugin name>'
+ exit 1
+fi
+
+cd ${SCRIPTPATH}/../plugins
+mkdir ${1}.bundle
+cd ${1}.bundle
+mkdir Contents
+cd Contents
+
+mkdir Code
+mkdir Resources
+touch DefaultPrefs.json
+touch Info.plist
+touch VERSION
Please sign in to comment.
Something went wrong with that request. Please try again.