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
Products
MPTagThat
A script for deleting all track numbers / album names
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="djdinjo" data-source="post: 729189" data-attributes="member: 112378"><p>Hello.</p><p>I want to write a script on my own. The samples are documentation enough for me how to write one on my own.</p><p>So I tried the code you see in the bottom. It doesn't work. So I think, that the names for the TAGs (Album) is not right. What should I use instead of? And what should I use if I want th clear the Track number of a Track?</p><p>A short list with the most used TAG-names will be helpful to write some scripts on my own. I really want to do it on my own.</p><p></p><p>PS: <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> a lot for the great work of this tool!</p><p></p><p>[CODE]</p><p>public class Script : IScript</p><p>{</p><p> public bool Invoke(List<TrackData> tracks)</p><p> {</p><p> if (tracks == null) return false;</p><p></p><p> // Loop through all Music Tracks and perform the necessary action</p><p> foreach (TrackData track in tracks)</p><p> {</p><p> // Delete the album name</p><p> track.Album = null;</p><p> track.Changed = true; // Indicate that the track has been changed</p><p> }</p><p> return true;</p><p> }</p><p> </p><p> public string Invoke(TrackData track)</p><p> {</p><p> return "";</p><p> }</p><p>}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="djdinjo, post: 729189, member: 112378"] Hello. I want to write a script on my own. The samples are documentation enough for me how to write one on my own. So I tried the code you see in the bottom. It doesn't work. So I think, that the names for the TAGs (Album) is not right. What should I use instead of? And what should I use if I want th clear the Track number of a Track? A short list with the most used TAG-names will be helpful to write some scripts on my own. I really want to do it on my own. PS: :thx: a lot for the great work of this tool! [CODE] public class Script : IScript { public bool Invoke(List<TrackData> tracks) { if (tracks == null) return false; // Loop through all Music Tracks and perform the necessary action foreach (TrackData track in tracks) { // Delete the album name track.Album = null; track.Changed = true; // Indicate that the track has been changed } return true; } public string Invoke(TrackData track) { return ""; } } [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Products
MPTagThat
A script for deleting all track numbers / album names
Contact us
RSS
Top
Bottom