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 2
General
Export tool and import support from MP-TVSeries & Moving Pictures to MP2
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="Lehmden" data-source="post: 1253744" data-attributes="member: 109222"><p>Hi.</p><p>As I'm very familiar with Autoit I would use it of course. AutoIt has in-build SQLite support so I directly can read the TVSeries Database and then generate an XML file from the data in the DB. The path to the database can be given as an argument or a setting option. No need to run it from inside a specific folder then...</p><p>If you don't know AutoIt, it's a basic alike scripting and programming language, very easy to learn and very powerful if you know what you're doing. Originally AutoIt was designed to remote control other Windows applications (Word, Photoshop,...) so it can simulate even mouse clicks in other windows. But as time goes by it has grown to a full blown procedural (opposite to object oriented) programming language incl usage of most Windows API and DLL. You even can compile the script/program to an 32 or 64 bit executable, if you like. The language and it's IDE is completely free. If you may have a look at Media-Buddy, it is written in Autoit and the source code is included in the installer package...</p><p>An example how easy AutoIt is... I need a helper tool to restart the main program after settings change. It just waits for one second, runs the main program that was given as a command line option and then exit. I first wrote this tool in AutoIt and it needs only 3 lines of code. </p><p>[code]Sleep(1000)</p><p>Run($CmdLine[1])</p><p>Exit[/code]</p><p>The first line waits for 1000 mSec </p><p>The second line runs the program given as CL Option No. 1</p><p>The third line cleanly exits the Tool.</p><p>Aside this it don't need any extra runtimes or other installation.</p><p>But this little helper tool very often was wrongly detected as a virus. so I decided to rewrote it in .NET (c#). Here exactly the same functionality (wait 1 second, run the main program and exit) needed 20 (to be exact 19 + 1 empty) lines of code. </p><p></p><p>[code=csharp]using System.Linq;</p><p>using System.Diagnostics;</p><p></p><p>namespace Restart</p><p>{</p><p> class Program</p><p> {</p><p> static void Main(string[] args)</p><p> {</p><p> System.Threading.Thread.Sleep(1000);</p><p> var exists = args.ElementAtOrDefault(0) != null;</p><p> if (exists)</p><p> {</p><p> Process P = new Process();</p><p> P.StartInfo.FileName = args[0];</p><p> P.Start();</p><p> }</p><p> }</p><p> }</p><p>}</p><p>[/code]</p><p>Additionally this tool needs a .NET runtime to be installed on the system...</p><p></p><p>But this tool throws not that often a "false positive" so I keep using it..</p><p></p><p></p><p>You can use the "official" SQLite Tools:</p><p><a href="https://sqlite.org/download.html" target="_blank">SQLite Download Page</a></p><p></p><p></p><p>Here you best refer to the wiki and/or generate some .nfo with Media-Buddy so you can compare what's needed and how it should be named...</p><p></p><p></p><p>You also can see how the artwork is named, if you prepare some test episodes in Media-Buddy. Or as above, read the Wiki...</p><p></p><p>I don't remember exactly how the TVSeries DB is structured, so I can't give you much more hints. Simply too long ago.</p><p></p><p>The artwork preparation is simple filecopy and rename... Should be straightforward as soon as you read the internal path and filename from TVSeries db.</p></blockquote><p></p>
[QUOTE="Lehmden, post: 1253744, member: 109222"] Hi. As I'm very familiar with Autoit I would use it of course. AutoIt has in-build SQLite support so I directly can read the TVSeries Database and then generate an XML file from the data in the DB. The path to the database can be given as an argument or a setting option. No need to run it from inside a specific folder then... If you don't know AutoIt, it's a basic alike scripting and programming language, very easy to learn and very powerful if you know what you're doing. Originally AutoIt was designed to remote control other Windows applications (Word, Photoshop,...) so it can simulate even mouse clicks in other windows. But as time goes by it has grown to a full blown procedural (opposite to object oriented) programming language incl usage of most Windows API and DLL. You even can compile the script/program to an 32 or 64 bit executable, if you like. The language and it's IDE is completely free. If you may have a look at Media-Buddy, it is written in Autoit and the source code is included in the installer package... An example how easy AutoIt is... I need a helper tool to restart the main program after settings change. It just waits for one second, runs the main program that was given as a command line option and then exit. I first wrote this tool in AutoIt and it needs only 3 lines of code. [code]Sleep(1000) Run($CmdLine[1]) Exit[/code] The first line waits for 1000 mSec The second line runs the program given as CL Option No. 1 The third line cleanly exits the Tool. Aside this it don't need any extra runtimes or other installation. But this little helper tool very often was wrongly detected as a virus. so I decided to rewrote it in .NET (c#). Here exactly the same functionality (wait 1 second, run the main program and exit) needed 20 (to be exact 19 + 1 empty) lines of code. [code=csharp]using System.Linq; using System.Diagnostics; namespace Restart { class Program { static void Main(string[] args) { System.Threading.Thread.Sleep(1000); var exists = args.ElementAtOrDefault(0) != null; if (exists) { Process P = new Process(); P.StartInfo.FileName = args[0]; P.Start(); } } } } [/code] Additionally this tool needs a .NET runtime to be installed on the system... But this tool throws not that often a "false positive" so I keep using it.. You can use the "official" SQLite Tools: [URL="https://sqlite.org/download.html"]SQLite Download Page[/URL] Here you best refer to the wiki and/or generate some .nfo with Media-Buddy so you can compare what's needed and how it should be named... You also can see how the artwork is named, if you prepare some test episodes in Media-Buddy. Or as above, read the Wiki... I don't remember exactly how the TVSeries DB is structured, so I can't give you much more hints. Simply too long ago. The artwork preparation is simple filecopy and rename... Should be straightforward as soon as you read the internal path and filename from TVSeries db. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
General
Export tool and import support from MP-TVSeries & Moving Pictures to MP2
Contact us
RSS
Top
Bottom