by tsull360 » Sun Feb 02, 2014 7:13 am
I'm sure its wildly unsupported, but I've finally gotten around to inserting podcast files into the database. This enables me to reference existing files in the podcast section (I have some files for podcasts which no longer exist).
The first step involves creating the podcast channel:
insert into podcast_channel (ID,URL,TITLE,DESCRIPTION,STATUS) Values (6,'http://www.foo.com','Test Insert','Testing Manual Insertion','COMPLETED')
The second step involves inserting the actual podcast episodes. To do this you first need to retrieve the channel ID assigned from the step above:
select podcast_channel where TITLE='Title From Above'
Then use the value returned in the command below.
insert into podcast_episode (ID,CHANNEL_ID,URL,PATH,TITLE,DESCRIPTION,PUBLISH_DATE,DURATION,BYTES_TOTAL,BYTES_DOWNLOADED,STATUS,ERROR_MESSAGE) Values (371,6,'http://www.foo.com/stuff.mp3','c:\foo\stuff.mp3','Test Title','Description','2014-01-27 06:00:00.0','1:00:00','200','200','COMPLETED','')
Not user friendly (and not meant to be), but is doing what I need.