def album(uin): generator = global_get(uin, QzoneGenerator(uin, download_if_not_exist)) return generator.generate_photo()
def blog_category(uin, encoded_category): generator = global_get(uin, QzoneGenerator(uin, download_if_not_exist)) return generator.generate_blog(encoded_category)
def single_blog(uin, encoded_category, blog_id, page=1): generator = global_get(uin, QzoneGenerator(uin)) return generator.generate_blog(encoded_category, blog_id, page)
def msg_board(uin, page=1): generator = global_get(uin, QzoneGenerator(uin, download_if_not_exist)) return generator.generate_msg_board(page)
def blog(uin): generator = global_get(uin, QzoneGenerator(uin, download_if_not_exist)) return generator.generate_blog()
def shuoshuo(uin, page=1): generator = global_get(uin, QzoneGenerator(uin, download_if_not_exist)) return generator.generate_shuoshuo(page)
def uin_home(uin): if not test_uin_valid(uin) or not os.path.exists(uin): return redirect(url_for("home")) generator = global_get(uin, QzoneGenerator(uin, download_if_not_exist)) return generator.generate_home()
def photo_layer(uin, encoded_album, page, photo_index=0): generator = global_get(uin, QzoneGenerator(uin, download_if_not_exist)) return generator.generate_photo_layer(encoded_album, page, photo_index)
def dialog_layer(uin, encoded_album, page, comment_index=0): generator = global_get(uin, QzoneGenerator(uin, download_if_not_exist)) return generator.generate_dialog_layer(encoded_album, page, comment_index)
def photo(uin, encoded_album, page=1): generator = global_get(uin, QzoneGenerator(uin, download_if_not_exist)) return generator.generate_photo(encoded_album, page)