Remove Episodenr from film title

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Remove Episodenr from film title

Re: Remove Episodenr from film title

by chris03354 » Mon Dec 15, 2014 11:40 am

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

Re: Remove Episodenr from film title

by Peke » Mon Dec 15, 2014 11:11 am

Track # = Episode #
Disk # = Season #

Re: Remove Episodenr from film title

by Lowlander » Mon Dec 15, 2014 10:14 am

I'd presume it's linked to Track#: http://www.mediamonkey.com/wiki/index.php/Songs_table, but I could be wrong.

Remove Episodenr from film title

by chris03354 » Mon Dec 15, 2014 7:11 am

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

Top