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
MediaPortal 1 Plugins
TVDatabaseV12.db: iCancelTime and bContentRecording
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="STSC" data-source="post: 11235" data-attributes="member: 10535"><p>This is exactly what I wanted to know! Thank you very much.</p><p></p><p>But can you please do me a favour and change following code in the TVDatabase.cs, method Open():</p><p></p><p></p><p></p><p>[code] // Open database</p><p> String strPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.</p><p> GetExecutingAssembly().Location);</p><p> Log.Write("opening tvdatabase");</p><p> try</p><p> {</p><p> System.IO.Directory.CreateDirectory(strPath + @"\database");</p><p> }</p><p> catch(Exception){}</p><p> //Upgrade();</p><p> m_db = new SQLiteClient(strPath + @"\database\TVDatabaseV15.db");[/code]</p><p></p><p>The thing is when I load the assembly from another folder an try to add something to the database it always tries to look up the database in my client folder, where it can't find the database. Actually you only need to add System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) before the database path.</p><p></p><p>I think that I might be able to release my Scheduler Plugin in the next couple weeks.</p><p></p><p>Thank you!!</p></blockquote><p></p>
[QUOTE="STSC, post: 11235, member: 10535"] This is exactly what I wanted to know! Thank you very much. But can you please do me a favour and change following code in the TVDatabase.cs, method Open(): [code] // Open database String strPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly. GetExecutingAssembly().Location); Log.Write("opening tvdatabase"); try { System.IO.Directory.CreateDirectory(strPath + @"\database"); } catch(Exception){} //Upgrade(); m_db = new SQLiteClient(strPath + @"\database\TVDatabaseV15.db");[/code] The thing is when I load the assembly from another folder an try to add something to the database it always tries to look up the database in my client folder, where it can't find the database. Actually you only need to add System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) before the database path. I think that I might be able to release my Scheduler Plugin in the next couple weeks. Thank you!! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
TVDatabaseV12.db: iCancelTime and bContentRecording
Contact us
RSS
Top
Bottom