Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. **------------------------------------------------------------------------------------------------
  2. * @header_start
  3. * WebGrab+Plus ini for grabbing EPG data from TvGuide websites
  4. * @Site: astro.com.my
  5. * @MinSWversion: V1.57
  6. *
  7. * @Revision 5 - [21/04/2017] Netuddki
  8. * - api change
  9. * - added many details
  10. * - added onscreen OR xmltv_ns episode system
  11. * - rewrite of channel creation
  12. * @Revision 4 - [01/09/2016] Blackbear199
  13. * - api change
  14. * @Revision 3 - [29/07/2016] Blackbear199
  15. * - rewrite
  16. * @Revision 2 - [14/07/2016] Blackbear199
  17. * - fix title scrub so shows with (D),(L),ect at beginning dont get skipped
  18. * @Revision 1 - [01/03/2016] Jan van Straaten
  19. * - maintenance revision
  20. * @Revision 0 - [09/04/2013] Jan van Straaten
  21. * - creation
  22. * @Remarks: your_remarks
  23. * @header_end
  24. **------------------------------------------------------------------------------------------------
  25. site {url=astro.com.my|timezone=Asia/Kuala_Lumpur|maxdays=7|cultureinfo=en-US|charset=UTF-8|titlematchfactor=90}
  26. *
  27. *site {episodesystem=onscreen} *Enable for Onscreen Episode System
  28. site {episodesystem=xmltv_ns} *Enable for xmltv_ns Episode System
  29. *
  30. url_index{url|http://ams-web-elb-378670955.ap-southeast-1.elb.amazonaws.com/ams/v3/getEvents?periodStart=|urldate|:00:00:00&periodEnd=|urldate|:23:59:59&channelId=|channel|}
  31. *
  32. url_index.headers {customheader=Accept-Encoding=gzip,deflate}
  33. urldate.format {datestring|yyy-MM-dd}
  34. *
  35. index_showsplit.scrub {regex||\{"eventID":.*?\]\},||}
  36. *
  37. index_start.scrub {regex||"displayDateTime":".*?(\d+:\d+:\d+)\.\d+||}
  38. index_duration.scrub {regex||"displayDuration":"(\d+:\d+):\d+||}
  39. index_title.scrub {single|"programmeTitle":"||","}
  40. index_description.scrub {single|"shortSynopsis":"||","}
  41. index_category.scrub {single|"genre":"||","}
  42. index_category.scrub {single|"subGenre":"||","}
  43. index_actor.scrub {single(separator=",")|"actors":"||","}
  44. index_director.scrub {single(separator=",")|"directors":"||","}
  45. index_producer.scrub {single|(separator=",")|"producers":"||","}
  46. index_showicon.scrub {single|"epgEventImage":"||","}
  47.  
  48. index_episode.modify {substring(type=regex pattern="'S1' Ep'E1'""Ep'E1'")|'index_title' "S\d+\sEp\d+\|Ep\d+"}
  49. *
  50. index_title.modify {remove(type=regex)|\sS\d+\sEp\d+\|\sEp\d+}
  51. *
  52. ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  53. ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
  54. **
  55. ** @auto_xml_channel_start
  56. *url_index{url|http://ams-web-elb-378670955.ap-southeast-1.elb.amazonaws.com/ams/v3/getChannels}
  57. *index_site_id.scrub {multi|"channelId":||,"}
  58. *index_site_channel.scrub {multi|channelTitle":"||",}
  59. *index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
  60. ** @auto_xml_channel_end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement