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
Development
General Development (no feature request here!)
TVDatabase.GetRecordedTV question
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="pilehave" data-source="post: 472671" data-attributes="member: 71550"><p>Well, thanks for stopping by, I just get so frustrated when I know I have all the rest of the code sorted out and just needs this simple code to work.</p><p></p><p>I have found it in both process-plugins and window-plugins that are part of SVN, and some of it is really simple, like the DiskManagement script that deletes recorded shows marked for deletion after a certain period.</p><p></p><p>This thread of mine also got no response after two months, but is ultimately the same question. How frustrated of waiting can you get in two months? A lot <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p><a href="https://forum.team-mediaportal.com/general-development-no-feature-request-here-48/recorded-shows-dialog-help-needed-57577/" target="_blank">https://forum.team-mediaportal.com/general-development-no-feature-request-here-48/recorded-shows-dialog-help-needed-57577/</a></p><p></p><p>I even downloaded Visual Studio 2008 to see if it changed anything versus using C# Express, but same deal.</p><p></p><p>The original code I'm referring to is Frodo's and is a really simple function, triggered every 15 minutes by a timer. As far I can tell it is this code that currently runs the diskmanagement, so it DOES work, just not in my plugin:</p><p></p><p>[CODE] private void DeleteOldRecordings()</p><p> {</p><p> List<TVRecorded> recordings = new List<TVRecorded>();</p><p> TVDatabase.GetRecordedTV(ref recordings);</p><p> foreach (TVRecorded rec in recordings)</p><p> {</p><p> if (!rec.ShouldBeDeleted)</p><p> {</p><p> continue;</p><p> }</p><p></p><p> Log.Info("RecordingManagement: delete old recording: {0} date: {1}",</p><p> rec.FileName,</p><p> rec.StartTime.ToShortDateString());</p><p> Recorder.DeleteRecording(rec);</p><p> }</p><p> }[/CODE]</p><p></p><p>As you can se it's just 2 lines of code + a foreach loop that extracts the recordings. The "using" part of the code reveals nothing that I don't already have in my own code.</p><p></p><p>Oh, I feel better now by the way, had to get it out of my system. Perhaps I ought to go shoot some bad guys in a game <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" /></p></blockquote><p></p>
[QUOTE="pilehave, post: 472671, member: 71550"] Well, thanks for stopping by, I just get so frustrated when I know I have all the rest of the code sorted out and just needs this simple code to work. I have found it in both process-plugins and window-plugins that are part of SVN, and some of it is really simple, like the DiskManagement script that deletes recorded shows marked for deletion after a certain period. This thread of mine also got no response after two months, but is ultimately the same question. How frustrated of waiting can you get in two months? A lot ;) [url]https://forum.team-mediaportal.com/general-development-no-feature-request-here-48/recorded-shows-dialog-help-needed-57577/[/url] I even downloaded Visual Studio 2008 to see if it changed anything versus using C# Express, but same deal. The original code I'm referring to is Frodo's and is a really simple function, triggered every 15 minutes by a timer. As far I can tell it is this code that currently runs the diskmanagement, so it DOES work, just not in my plugin: [CODE] private void DeleteOldRecordings() { List<TVRecorded> recordings = new List<TVRecorded>(); TVDatabase.GetRecordedTV(ref recordings); foreach (TVRecorded rec in recordings) { if (!rec.ShouldBeDeleted) { continue; } Log.Info("RecordingManagement: delete old recording: {0} date: {1}", rec.FileName, rec.StartTime.ToShortDateString()); Recorder.DeleteRecording(rec); } }[/CODE] As you can se it's just 2 lines of code + a foreach loop that extracts the recordings. The "using" part of the code reveals nothing that I don't already have in my own code. Oh, I feel better now by the way, had to get it out of my system. Perhaps I ought to go shoot some bad guys in a game :P [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
TVDatabase.GetRecordedTV question
Contact us
RSS
Top
Bottom