- About project
- Privacy policy
- Log out
- My area
- Sign up
- Sign in
Python MRSS playlist generator
Class Build is intended for the generation of Sonettic playlist MRSS feed, that is further used for the playlist formation. Technically the format is a broadening of Yahoo! MRSS (more details can be found on the format description page).
More about Custom MRSS for Sonettic Cinema HD Player.
For receiving necessary data a method channel_to_mrss is used, which the only agrument is the channel, that should be in MRSS. It is defined like the other typical for the format elements — in a class which is a container where elementary data describing necessary property values are kept. For example, class MRSSAds describing a node <ads> has a required argument 'url', and optional arguments 'value' and 'settings', which could be indicated when creating the objects. All classes form an hierarchical structure, for example, an object representing MRSSChannel has a field, that describes MRSSItem included in it.
You may download all of the source files and examples from our site:
Requirements: Sonettic MRSS feed generator xml.etree.ElementTree. It's in most of python distributions.
Let's see an example that shows a generation of MRSS:
As a result we are getting a XML document with one media item wich have :
