oakesville / mythling

Android Client for MythTV
http://oakesville.github.io/mythling
Apache License 2.0
15 stars 4 forks source link

Support Slave Backends #61

Open oakesville opened 8 years ago

oakesville commented 8 years ago

https://www.mythtv.org/wiki/Setup_General#Slave_Backends

Unfortunately I don't have a way to test this since I don't have such a setup.

delboy711 commented 7 years ago

I have dual servers and can test any beta code.

oakesville commented 7 years ago

Look for a beta release in the coming weeks. In the meantime if you could confirm my approach it will help me get started. With your setup, if you access http://:6544/Dvr/GetRecordedList, does the HostName element for each Recording correctly identify the backend that can serve it up?

Thanks,

delboy711 commented 7 years ago

Yes it does. The field in the and blocks both show the hostname where the recoding is held. On my system the hostnames resolve in DNS, but I do not know if you can assume they always will.

example record

<Program><StartTime>2017-02-11T21:00:00Z</StartTime><EndTime>2017-02-11T21:50:00Z</EndTime><Title>Terry Pratchett</Title><SubTitle>Back in Black</SubTitle><Category>News</Category><CatType/><Repeat>false</Repeat><VideoProps>2</VideoProps><AudioProps>33</AudioProps><SubProps>2</SubProps><SeriesId/><ProgramId>fp.bbc.co.uk/23v9wt</ProgramId><Stars>0</Stars><LastModified>2017-02-11T23:26:40Z</LastModified><ProgramFlags>2068</ProgramFlags><Airdate/><Description>Poignant and humorous film telling the story of the hugely popular author Terry Pratchett in his own words.</Description><Inetref>ttvdb.py_85422</Inetref><Season>0</Season><Episode>0</Episode><TotalEpisodes>0</TotalEpisodes><FileSize>1727459056</FileSize><FileName>1002_20170211210000.ts</FileName><HostName>raspberrypi</HostName><Channel><ChanId>1002</ChanId><ChanNum>2</ChanNum><CallSign>BBC TWO</CallSign><IconURL>/Guide/GetChannelIcon?ChanId=1002</IconURL><ChannelName>BBC TWO</ChannelName><MplexId>5</MplexId><ServiceId>4287</ServiceId><ATSCMajorChan>0</ATSCMajorChan><ATSCMinorChan>0</ATSCMinorChan><Format/><FrequencyId>45</FrequencyId><FineTune>0</FineTune><ChanFilters/><SourceId>2</SourceId><InputId>0</InputId><CommFree>true</CommFree><UseEIT>true</UseEIT><Visible>true</Visible><XMLTVID/><DefaultAuth>fp.bbc.co.uk</DefaultAuth><Programs/></Channel><Recording><RecordedId>1667</RecordedId><Status>Recorded</Status><Priority>0</Priority><StartTs>2017-02-11T21:00:00Z</StartTs><EndTs>2017-02-11T21:56:01Z</EndTs><FileSize>1727459056</FileSize><FileName>1002_20170211210000.ts</FileName><HostName>raspberrypi</HostName><LastModified>2017-02-11T23:26:40Z</LastModified><RecordId>918</RecordId><RecGroup>Default</RecGroup><PlayGroup>Default</PlayGroup><StorageGroup>Default</StorageGroup><RecType>0</RecType><DupInType>0</DupInType><DupMethod>0</DupMethod><EncoderId>0</EncoderId><EncoderName/><Profile>Default</Profile></Recording><Artwork><ArtworkInfos><ArtworkInfo><URL>/Content/GetImageFile?StorageGroup=Coverart&FileName=/ttvdb.py_85422_coverart.jpg</URL><FileName>myth://Coverart@mythserver/ttvdb.py_85422_coverart.jpg</FileName><StorageGroup>Coverart</StorageGroup><Type>coverart</Type></ArtworkInfo><ArtworkInfo><URL>/Content/GetImageFile?StorageGroup=Fanart&FileName=/ttvdb.py_85422_fanart.jpg</URL><FileName>myth://Fanart@mythserver/ttvdb.py_85422_fanart.jpg</FileName><StorageGroup>Fanart</StorageGroup><Type>fanart</Type></ArtworkInfo><ArtworkInfo><URL>/Content/GetImageFile?StorageGroup=Banners&FileName=/ttvdb.py_85422_banner.jpg</URL><FileName>myth://Banners@mythserver/ttvdb.py_85422_banner.jpg</FileName><StorageGroup>Banners</StorageGroup><Type>banner</Type></ArtworkInfo></ArtworkInfos></Artwork><Cast><CastMembers/></Cast></Program>