Hi,
i have started to develop my first MP Gui Plugin (vb.net). You can find the Source Code here:
Clickfinder ProgramGuide Plugin for MediaPortal
Short plugin describtion:
The plugin is a ProgramGuide that shows you what broadcast on our televisions at Now, PrimeTime, LateTime and so on. The Data based /sorted on / by the RatingData of the TV Movie Clickfinder Database (my imported EPG Data and the reason why the Plugin is only in German). Idea for this plugin was the smartphone App "TV Spielfilm".
The last few days i've learned a lot by reading the MP Source Code. Now i started to replace my "manuell Database Access" with the TVDatabase Class.
My Problem is that i need the "idChannel" from the tvmoviemapping table by the key "stationName", but i don't find the right Syntax.
At the moment i use a manuell Connection with a sqlquery:
But that must also work with the TVMovieMapping Class, something like that:
Can you give me code snippets in c# or vb.net, please.
Hope you understand my problem, i know my english is not that well
i have started to develop my first MP Gui Plugin (vb.net). You can find the Source Code here:
Clickfinder ProgramGuide Plugin for MediaPortal
Short plugin describtion:
The plugin is a ProgramGuide that shows you what broadcast on our televisions at Now, PrimeTime, LateTime and so on. The Data based /sorted on / by the RatingData of the TV Movie Clickfinder Database (my imported EPG Data and the reason why the Plugin is only in German). Idea for this plugin was the smartphone App "TV Spielfilm".
The last few days i've learned a lot by reading the MP Source Code. Now i started to replace my "manuell Database Access" with the TVDatabase Class.
My Problem is that i need the "idChannel" from the tvmoviemapping table by the key "stationName", but i don't find the right Syntax.
At the moment i use a manuell Connection with a sqlquery:
Code:
ReadTvServerDB("Select * from tvmoviemapping Inner Join channel on tvmoviemapping.idChannel = channel.idChannel where stationName = '" & _MappingName & "'")
But that must also work with the TVMovieMapping Class, something like that:
Code:
in vb.net:
tvDatabase.tvMovieMapping.RetrieveList(???????)
for i = 0 to tvDatabase.tvMovieMapping.count -1
idchannel = tvDatabase.tvMovieMapping.idChannel
next
in c#:
tvDatabase.tvMovieMapping.RetrieveList(????);
for (i = 0; i <= tvDatabase.tvMovieMapping.count - 1; i++) {
idchannel = tvDatabase.tvMovieMapping.idChannel;
}
Can you give me code snippets in c# or vb.net, please.
Hope you understand my problem, i know my english is not that well