Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%!
- import sickbeard
- import calendar
- from sickbeard import sbdatetime
- from sickbeard import network_timezones
- from sickrage.helper.common import pretty_file_size
- import re
- import json
- %>
- <%
- for curShowlist in showlists:
- myShowList = list(curShowlist[1])
- for curShow in myShowList:
- my_dict = {
- "indexerId": curShow.indexerid,
- "indexer": curShow.indexer,
- "name": curShow.name,
- "location": curShow.location,
- "network": curShow.network,
- "airs": curShow.airs,
- "status": curShow.status,
- "startyear": curShow.startyear,
- "genre": curShow.genre,
- "classification": curShow.classification,
- "runtime": curShow.runtime,
- "quality": curShow.quality,
- "scene"curShow.scene,
- "sports": curShow.sports,
- "anime": curShow.anime,
- "airsNext": show_stat[curShow.indexerid]['ep_airs_next'],
- "snatched": show_stat[curShow.indexerid]['ep_snatched'],
- "downloaded": show_stat[curShow.indexerid]['ep_downloaded'],
- "total": show_stat[curShow.indexerid]['ep_total']
- }
- print(json.dumps(my_dict))
- %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement