This file contains 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
#!/bin/sh | |
APPLNAME="moeclock" | |
SHELLSCRIPT="moeclock" | |
ICON="moeclock" | |
RESOURCES=${APPLNAME}.app/Contents/Resources | |
mkdir ${APPLNAME}.app | |
mkdir ${APPLNAME}.app/Contents | |
mkdir ${APPLNAME}.app/Contents/MacOS | |
#mkdir ${APPLNAME}.app/Contents/Resources |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import plistlib | |
class info: | |
21def __init__ (self): | |
self.infodata = {'CFBundleShortVersionString': '1.0.0', |
This file contains 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
diff --git a/moeclock.py b/moeclock.py | |
index b5937e2..171f29a 100755 | |
--- a/moeclock.py | |
+++ b/moeclock.py | |
@@ -2,9 +2,11 @@ | |
# -*- coding: utf-8 -*- | |
import sys | |
+import pygtk; pygtk.require('2.0') | |
import gtk |
This file contains 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
#!/bin/sh | |
MAIL="" | |
PASSWORD="" | |
#curl -d mail=$MAIL -d password=$PASSWORD -c cookie.session https://secure.nicovideo.jp/secure/login?site=nicolive | |
LV="lv106878467" | |
USER_SESSION="user_session=" | |
COOKIE=$($HOME/bin/nicocookie) | |
#getPlayerStatusを取得 | |
PlayerStatus=$(curl -b $USER_SESSION$COOKIE http://live.nicovideo.jp/api/getplayerstatus?v=$LV) |
This file contains 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
#!/bin/sh | |
MAIL="" | |
PASSWORD="" | |
#curl -d mail=$MAIL -d password=$PASSWORD -c cookie.session https://secure.nicovideo.jp/secure/login?site=nicolive | |
LV="lv101377930" | |
USER_SESSION="user_session=" | |
COOKIE=$($HOME/bin/nicocookie) | |
#getPlayerStatusを取得 | |
PlayerStatus=$(curl -b $USER_SESSION$COOKIE http://live.nicovideo.jp/api/getplayerstatus?v=$LV) |
This file contains 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
#!/bin/sh | |
LV="lv101394446" | |
PARA=$(python bin/nicolive.py $LV) | |
echo $PARA | |
$HOME/usr/bin/rtmpdump $PARA 2>/dev/null | ffplay pipe: | |
#$HOME/usr/bin/rtmpdump $PARA 2>/dev/null | tee $LV.flv | ffplay pipe: | |
#$HOME/usr/bin/rtmpdump $PARA -o $LV.flv 2>/dev/null |
This file contains 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
#!/usr/bin/python | |
import sys | |
import commands | |
from NicoRtmpdumpParameter import NicoRtmpdumpParameter | |
from NicoRequest import PlayerStatus | |
from NicoRequest import NicoRequest | |
if __name__ == '__main__': |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
class NicoRtmpdumpParameter: | |
def __init__(self, filename, rtmp_url, stream_id, ticket, contents): | |
self.filename = filename | |
self.rtmp_url = rtmp_url | |
self.stream_id = stream_id | |
self.ticket = ticket | |
self.contents = contents |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import urllib, urllib2 | |
import cookielib | |
from xml.dom import minidom | |
class NicoRequest: | |
def __init__(self, mail, password): |
NewerOlder