home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
STB and Analogue
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="samsonious" data-source="post: 278053" data-attributes="member: 77427"><p>I'm making some progress with a custom plugin, but as there is no dedicated field to store the channel im playing around with different methods to get the external channel number across. As i am not using the externalID field in the channel table i was hoping to use that but from what i can tell it isn't passed and i'm trying to avoid extra database calls. </p><p></p><p>Another way to go would be to have an extra lookup database in SQLite or similar but again i'd rather not have an extra calls. I could quite easily make the external number be part of the channel name and rip that from the channel name but that will make the channel names look messy so i'd also like to avoid this. </p><p></p><p>My current exploration is using the channel tables CountryID field. This means no special reads etc and works really well with a few test channels i created. I then added 999 to test an upper limit (my STB channels are 3 digits) and it fails. I had put this down to the ID not matching a country as its cross referenced so i spent a good while trying to track down where the countries reside. They seemed hard coded so i checked the source and tracked them down but a quick test at adding a fake country with Id of 999 still fails <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /> so i'm not quite sure whats missing at the moment. </p><p></p><p>Anyone of the developers with a better understanding of how it peices together shed any light on this? </p><p></p><p>Will post updates if i manage to get a reliable setup working.</p><p></p><p>*edit*</p><p></p><p>Was thinking about it wrong, now have it working using the countryID. It was failing as the ID is used to index the array, so 999 was out of the bounds of the array. Just updated the countries to contain an even 1000 and its all good <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="samsonious, post: 278053, member: 77427"] I'm making some progress with a custom plugin, but as there is no dedicated field to store the channel im playing around with different methods to get the external channel number across. As i am not using the externalID field in the channel table i was hoping to use that but from what i can tell it isn't passed and i'm trying to avoid extra database calls. Another way to go would be to have an extra lookup database in SQLite or similar but again i'd rather not have an extra calls. I could quite easily make the external number be part of the channel name and rip that from the channel name but that will make the channel names look messy so i'd also like to avoid this. My current exploration is using the channel tables CountryID field. This means no special reads etc and works really well with a few test channels i created. I then added 999 to test an upper limit (my STB channels are 3 digits) and it fails. I had put this down to the ID not matching a country as its cross referenced so i spent a good while trying to track down where the countries reside. They seemed hard coded so i checked the source and tracked them down but a quick test at adding a fake country with Id of 999 still fails :( so i'm not quite sure whats missing at the moment. Anyone of the developers with a better understanding of how it peices together shed any light on this? Will post updates if i manage to get a reliable setup working. *edit* Was thinking about it wrong, now have it working using the countryID. It was failing as the ID is used to index the array, so 999 was out of the bounds of the array. Just updated the countries to contain an even 1000 and its all good :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
STB and Analogue
Contact us
RSS
Top
Bottom