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
Popular Plugins
My TVSeries
Reorganizing local files based on TVSeries QLite db
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="depassp" data-source="post: 506343" data-attributes="member: 81592"><p>Thanks for the tip on TVRename. It seems to build its own database, though. My problem is some of my media is named pretty badly. I've done a lot of work with string parsing and manually adding it to the db, and it's now in the SQLite db properly.</p><p></p><p>As far as having to re-import my media after it's moved, that shouldn't be necessary if I have a tool that uses the SQLite db directly.</p><p></p><p>Here's an quasi-example:</p><p></p><p>[CODE]DECLARE @v_oldfilename varchar(50), @v_season integer, @v_episode integer, @v_newfilename varchar(50)</p><p></p><p>SELECT @v_oldfilename=EpisodeFilename, @v_season=SeasonIndex, @v_episode=EpisodeIndex</p><p>FROM local_episodes</p><p></p><p>Parse a new filename, move local file from @v_oldfilename to @v_newfilename</p><p></p><p>UPDATE local_episodes</p><p>SET EpisodeFilename = @v_newfilename</p><p>WHERE EpisodeFilename = @v_oldfilename[/CODE]</p><p></p><p>Come to think of it, I could probably code this up, I just don't like having to re-invent the wheel if there's already a tool out there...</p></blockquote><p></p>
[QUOTE="depassp, post: 506343, member: 81592"] Thanks for the tip on TVRename. It seems to build its own database, though. My problem is some of my media is named pretty badly. I've done a lot of work with string parsing and manually adding it to the db, and it's now in the SQLite db properly. As far as having to re-import my media after it's moved, that shouldn't be necessary if I have a tool that uses the SQLite db directly. Here's an quasi-example: [CODE]DECLARE @v_oldfilename varchar(50), @v_season integer, @v_episode integer, @v_newfilename varchar(50) SELECT @v_oldfilename=EpisodeFilename, @v_season=SeasonIndex, @v_episode=EpisodeIndex FROM local_episodes Parse a new filename, move local file from @v_oldfilename to @v_newfilename UPDATE local_episodes SET EpisodeFilename = @v_newfilename WHERE EpisodeFilename = @v_oldfilename[/CODE] Come to think of it, I could probably code this up, I just don't like having to re-invent the wheel if there's already a tool out there... [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Reorganizing local files based on TVSeries QLite db
Contact us
RSS
Top
Bottom