Advertisement
OmgImAlexis

Untitled

Feb 27th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. <%!
  2. import sickbeard
  3. import calendar
  4. from sickbeard import sbdatetime
  5. from sickbeard import network_timezones
  6. from sickrage.helper.common import pretty_file_size
  7. import re
  8. import json
  9. %>
  10. <%
  11. for curShowlist in showlists:
  12. myShowList = list(curShowlist[1])
  13. for curShow in myShowList:
  14. my_dict = {
  15. "indexerId": curShow.indexerid,
  16. "indexer": curShow.indexer,
  17. "name": curShow.name,
  18. "location": curShow.location,
  19. "network": curShow.network,
  20. "airs": curShow.airs,
  21. "status": curShow.status,
  22. "startyear": curShow.startyear,
  23. "genre": curShow.genre,
  24. "classification": curShow.classification,
  25. "runtime": curShow.runtime,
  26. "quality": curShow.quality,
  27. "scene"curShow.scene,
  28. "sports": curShow.sports,
  29. "anime": curShow.anime,
  30. "airsNext": show_stat[curShow.indexerid]['ep_airs_next'],
  31. "snatched": show_stat[curShow.indexerid]['ep_snatched'],
  32. "downloaded": show_stat[curShow.indexerid]['ep_downloaded'],
  33. "total": show_stat[curShow.indexerid]['ep_total']
  34. }
  35. print(json.dumps(my_dict))
  36. %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement