add u2helper

This commit is contained in:
tianyu
2015-06-07 20:11:41 +08:00
parent b6c94fd1a3
commit 4d0c2450a5
6 changed files with 177 additions and 0 deletions

19
u2helper/u2torrent.py Normal file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env python
__author__ = 'ty'
import json
class U2Torrent:
title = ""
id = 0
catalog = ""
description = ""
name = ""
folder = ""
def __init__(self):
pass
def json(self):
return json.dumps(self, default=lambda o: o.__dict__, ensure_ascii=False).encode('utf8')