Cleaned up for a simple launch
This commit is contained in:
1 parent
049912cc20
commit
1e62e84da2
16 files changed
+114
-50
No files matched your search
@@ -1 +1 @@
|
||||
74CC1F_0D376FC60C9DC_000 1 5 0 0 0 0
|
||||
74CC1F_0D376FC60C9DC_000 4 5 0 0 0 0
|
||||
@@ -182,7 +182,7 @@ def LoadHatenaStructure(Resource, path="hatenadir/ds/v2-xx", root = True):
|
||||
folder = FolderResource()
|
||||
LoadHatenaStructure(folder, os.path.join(path, os.path.basename(i)), False)
|
||||
Resource.putChild(os.path.basename(i), folder)
|
||||
|
||||
|
||||
#Flipnote handler:
|
||||
class Database:
|
||||
def __init__(self):
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
<html>␍ <head>␍ <title>Info</title>␍ <meta name="uppertitle" content="Info">␍ <link rel="stylesheet" type="text/css" href="http://flipnote.hatena.com/css/ds/common.css">␍ </head>␍ <body>␍ <div class="container">␍ <div class="title" align="center">pbsds's Hatena Server</div>␍ <div class="news-body">␍ <p>This is a work in progress! There's not much functionality yet because it's still in early stages. Please enjoy your stay.</p>␍ </div>␍ </div>␍ </body>␍</html>
|
||||
Binary file not shown.
@@ -0,0 +1,20 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<ugo_xml>
|
||||
<layout>
|
||||
<value>2</value>
|
||||
<value>1</value>
|
||||
</layout>
|
||||
<title>
|
||||
<label>Inbox</label>
|
||||
<label />
|
||||
<label />
|
||||
<label />
|
||||
<label />
|
||||
<num>0</num>
|
||||
</title>
|
||||
<button>
|
||||
<label>Info</label>
|
||||
<address>http://flipnote.hatena.com/ds/v2-xx/help/info.htm</address>
|
||||
<trait>3</trait>
|
||||
</button>
|
||||
</ugo_xml>
|
||||
@@ -12,61 +12,18 @@
|
||||
<num>0</num>
|
||||
</title>
|
||||
<button>
|
||||
<label>All Flipnotes</label>
|
||||
<address>http://flipnote.hatena.com/ds/v2-eu/frontpage/hotmovies.uls</address>
|
||||
<label>Browse Flipnotes</label>
|
||||
<address>http://flipnote.hatena.com/ds/v2-xx/frontpage/hotmovies.uls</address>
|
||||
<trait>100</trait>
|
||||
<value />
|
||||
<value>0</value>
|
||||
</button>
|
||||
<button>
|
||||
<label>Announcement</label>
|
||||
<address>http://flipnote.hatena.com/ds/v2-eu/information.uls</address>
|
||||
<trait>102</trait>
|
||||
<value />
|
||||
<value>0</value>
|
||||
</button>
|
||||
<button>
|
||||
<label>Channels</label>
|
||||
<address>http://flipnote.hatena.com/ds/v2-eu/channels.uls</address>
|
||||
<trait>101</trait>
|
||||
<value />
|
||||
<value>0</value>
|
||||
</button>
|
||||
<button>
|
||||
<label>News</label>
|
||||
<address>http://flipnote.hatena.com/ds/v2-eu/help/news.htm?mode=archives</address>
|
||||
<label>Info</label>
|
||||
<address>http://flipnote.hatena.com/ds/v2-xx/help/info.htm</address>
|
||||
<trait>0</trait>
|
||||
<value />
|
||||
<value>0</value>
|
||||
<embedded_file>__ntfts\News.ntft</embedded_file>
|
||||
</button>
|
||||
<button>
|
||||
<label>Creator's Room</label>
|
||||
<address>http://flipnote.hatena.com/ds/v2-eu/96FAD88031C49DE1/profile.htm?pm=80&t=260</address>
|
||||
<trait>104</trait>
|
||||
<value />
|
||||
<value>0</value>
|
||||
</button>
|
||||
<button>
|
||||
<label>Special Room</label>
|
||||
<address>http://flipnote.hatena.com/ds/v2-eu/special_room.htm</address>
|
||||
<trait>1</trait>
|
||||
<value />
|
||||
<value>0</value>
|
||||
<embedded_file>__ntfts\Special Room.ntft</embedded_file>
|
||||
</button>
|
||||
<button>
|
||||
<label>Help</label>
|
||||
<address>http://flipnote.hatena.com/ds/v2-eu/help/index_ww.htm</address>
|
||||
<trait>117</trait>
|
||||
<value />
|
||||
<value>0</value>
|
||||
</button>
|
||||
<button>
|
||||
<label>Command Search</label>
|
||||
<address>ugomemo://command</address>
|
||||
<trait>103</trait>
|
||||
<value />
|
||||
<value>0</value>
|
||||
</button>
|
||||
</ugo_xml>
|
||||
Binary file not shown.
@@ -135,7 +135,7 @@ class CreatorIDFile(resource.Resource):
|
||||
|
||||
#Stars:
|
||||
name = "Stars"
|
||||
content = '<a href="http://flipnote.hatena.com/ds/v2-xx/movie/%s/%s.htm?mode=stardetail"><span class="star0c">?</span> <span class="star0">%s</span></a>' % (CreatorID, filename, flipnote[2])#yellow stars
|
||||
content = u'<a href="http://flipnote.hatena.com/ds/v2-xx/movie/%s/%s.htm?mode=stardetail"><span class="star0c">\u2605</span> <span class="star0">%s</span></a>' % (CreatorID, filename, flipnote[2])#yellow stars
|
||||
#todo: add other stars
|
||||
Entries.append(PageEntryTemplate.replace("%%Name%%", name).replace("%%Content%%", content))
|
||||
|
||||
|
||||
Binary file not shown.
@@ -148,3 +148,75 @@
|
||||
[16:32:20] 192.168.0.2 added 30 stars to 9EEDCBF0AA42BE29/42BE29_0A52A7C3273AE_000.ppm
|
||||
[16:32:26] 192.168.0.2 requested frontpage/hotmovies.ugo page 1
|
||||
[16:32:33] Server shutdown
|
||||
[16:32:33] Server startup...
|
||||
|
||||
[16:32:35] 192.168.0.2 requested frontpage/likedmovies.ugo page 1
|
||||
[16:32:56] 192.168.0.2 requested movie/9EEDCBF0AA42BE29/42BE29_0A52A7C3273AE_000.info
|
||||
[16:32:57] 192.168.0.2 requested movie/9EEDCBF0AA42BE29/42BE29_0A52A7C3273AE_000.ppm
|
||||
[16:56:49] Server shutdown
|
||||
[21:57:30] Server startup...
|
||||
|
||||
[21:57:50] 192.168.0.2 requested en/eula.txt
|
||||
[21:57:51] 192.168.0.2 requested en/confirm/upload.txt
|
||||
[21:57:51] 192.168.0.2 requested en/confirm/download.txt
|
||||
[21:57:52] 192.168.0.2 requested en/confirm/delete.txt
|
||||
[21:57:53] 192.168.0.2 requested index.ugo
|
||||
[22:00:39] 213.138.175.204 requested en/eula.txt
|
||||
[22:00:40] 213.138.175.204 requested en/confirm/upload.txt
|
||||
[22:00:40] 213.138.175.204 requested en/confirm/download.txt
|
||||
[22:00:41] 213.138.175.204 requested en/confirm/delete.txt
|
||||
[22:00:41] 213.138.175.204 requested index.ugo
|
||||
[22:01:35] 213.138.175.204 requested frontpage/hotmovies.ugo page 1
|
||||
[22:01:38] 213.138.175.204 requested movie/913304C0CC74CC1F/74CC1F_0D376FC60C9DC_000.info
|
||||
[22:01:39] 213.138.175.204 requested movie/913304C0CC74CC1F/74CC1F_0D376FC60C9DC_000.ppm
|
||||
[22:03:20] Server shutdown
|
||||
[22:03:26] Server startup...
|
||||
|
||||
[22:03:29] 213.138.175.204 requested movie/913304C0CC74CC1F/74CC1F_0D376FC60C9DC_000.info
|
||||
[22:03:30] 213.138.175.204 requested movie/913304C0CC74CC1F/74CC1F_0D376FC60C9DC_000.ppm
|
||||
[22:12:05] Server shutdown
|
||||
[22:12:05] Server startup...
|
||||
|
||||
[22:12:26] 213.138.175.204 requested index.ugo
|
||||
[22:12:31] 213.138.175.204 requested help/info.htm
|
||||
[22:12:37] Server shutdown
|
||||
[22:12:37] Server startup...
|
||||
|
||||
[22:12:39] 213.138.175.204 requested help/info.htm
|
||||
[22:12:49] Server shutdown
|
||||
[22:12:49] Server startup...
|
||||
|
||||
[22:12:51] 213.138.175.204 requested help/info.htm
|
||||
[22:13:14] Server shutdown
|
||||
[22:13:15] Server startup...
|
||||
|
||||
[22:13:18] 213.138.175.204 requested help/info.htm
|
||||
[22:13:21] 213.138.175.204 requested inbox.ugo
|
||||
[22:13:23] 213.138.175.204 requested help/info.htm
|
||||
[22:15:15] Server shutdown
|
||||
[22:15:15] Server startup...
|
||||
|
||||
[22:15:24] 213.138.175.204 requested frontpage/hotmovies.ugo page 1
|
||||
[22:15:27] 213.138.175.204 requested movie/913304C0CC74CC1F/74CC1F_0D376FC60C9DC_000.info
|
||||
[22:15:28] 213.138.175.204 requested movie/913304C0CC74CC1F/74CC1F_0D376FC60C9DC_000.ppm
|
||||
[22:15:33] 213.138.175.204 requested help/post_howto.htm
|
||||
[22:18:05] Server shutdown
|
||||
[22:18:05] Server startup...
|
||||
|
||||
[22:18:40] 213.138.175.204 requested en/eula.txt
|
||||
[22:18:41] 213.138.175.204 requested en/confirm/upload.txt
|
||||
[22:18:42] 213.138.175.204 requested en/confirm/download.txt
|
||||
[22:18:42] 213.138.175.204 requested en/confirm/delete.txt
|
||||
[22:18:43] 213.138.175.204 requested eula_list.tsv
|
||||
[22:19:30] 213.138.175.204 requested index.ugo
|
||||
[22:19:37] 213.138.175.204 requested help/info.htm
|
||||
[22:19:46] 213.138.175.204 requested frontpage/hotmovies.ugo page 1
|
||||
[22:19:53] 213.138.175.204 requested inbox.ugo
|
||||
[22:19:54] 213.138.175.204 requested help/info.htm
|
||||
[22:20:26] Server shutdown
|
||||
[22:20:27] Server startup...
|
||||
|
||||
[22:21:08] Server shutdown
|
||||
[22:21:08] Server startup...
|
||||
|
||||
[22:22:34] Server shutdown
|
||||
@@ -0,0 +1,14 @@
|
||||
Error in atexit._run_exitfuncs:
|
||||
Traceback (most recent call last):
|
||||
File "C:\Python27\lib\atexit.py", line 24, in _run_exitfuncs
|
||||
func(*targs, **kargs)
|
||||
File "C:\Users\pbsds\Desktop\Programming\python\hatena server\hatena.py", line 219, in write
|
||||
f = open("database/Creators/%s/flipnotes.dat" % ID, "wb")
|
||||
IOError: [Errno 2] No such file or directory: 'database/Creators/9EEDCBF0AA42BE29/flipnotes.dat'
|
||||
Error in sys.exitfunc:
|
||||
Traceback (most recent call last):
|
||||
File "C:\Python27\lib\atexit.py", line 24, in _run_exitfuncs
|
||||
func(*targs, **kargs)
|
||||
File "C:\Users\pbsds\Desktop\Programming\python\hatena server\hatena.py", line 219, in write
|
||||
f = open("database/Creators/%s/flipnotes.dat" % ID, "wb")
|
||||
IOError: [Errno 2] No such file or directory: 'database/Creators/9EEDCBF0AA42BE29/flipnotes.dat'
|
||||
Reference in new issue
Block a user
