Remove Episodenr from film title

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey for Windows 4.

Moderators: Gurus, Addon Administrators

chris03354
Posts: 3
Joined: Mon Mar 18, 2013 4:55 am

Remove Episodenr from film title

Post by chris03354 »

I wrote a script to remove Epidose nrs from a film list and put them into the <Episode #>.
But i don't know the field name vor the Episode column?
The "itm.episode#" give me an error.
Hoping for any help:

Code: Select all

Sub SplitTitleEpisodeNr()
  Dim list, itm, i, j, tmp, tmplcase, cDummy1, cdummy2, nDummy1, check1
  Set list = SDB.CurrentSongList

  For i = 0 To list.Count - 1
    Set itm = list.Item(i)
    cDummy1=itm.Title
    For j = 1 To 9

      if right(cDummy1,1) = chr(j+48) then
        itm.episode# = j
        itm.Custom5 = "ranking"
      end if
    Next
  Next

  ' Write all back to DB and update tags
  list.UpdateAll
End Sub
Last edited by Lowlander on Mon Dec 15, 2014 10:15 am, edited 1 time in total.
Reason: Moved to correct forum
Lowlander
Posts: 56590
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: Remove Episodenr from film title

Post by Lowlander »

I'd presume it's linked to Track#: http://www.mediamonkey.com/wiki/index.php/Songs_table, but I could be wrong.
Peke
Posts: 17486
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Remove Episodenr from film title

Post by Peke »

Track # = Episode #
Disk # = Season #
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
chris03354
Posts: 3
Joined: Mon Mar 18, 2013 4:55 am

Re: Remove Episodenr from film title

Post by chris03354 »

I tried:
...
For j = 1 To 9
if right(cDummy1,1) = chr(j+48) then
itm.TrackNumber = j
itm.Custom5 = "ranking"
end if
Next
...
getting the error: method is not supported

...
For j = 1 To 9
if right(cDummy1,1) = chr(j+48) then
itm.Track# = j
itm.Custom5 = "ranking"
end if
Next
...
getting the error: syntaxis error
Post Reply