Kodi Community Forum
[WIP] Audio-Matic Automated Music Downloader/Organizer - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: [WIP] Audio-Matic Automated Music Downloader/Organizer (/showthread.php?tid=96794)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48


- Cuddly Cannibal - 2011-05-25

I'm having some issues with the post-processing, and I'm guessing it's something I'm doing wrong. My major issue is that for whatever reason I can't get anything to process until after I shutdown AM and start it again.

EDIT: Must have been something wonky on my end with t processing, all is well now other then my next problem.

Also, once again, most likely my fault but everything that gets processed is turning out not quite how I want it to. Nothing is capitalized properly and there are underscores in somewhat random places (while I have the post-proc setting disabled that say something to the effect to add an underscore where illegal chacters are used).

They're both small gripes though, other then that the program works pretty great for me, but any suggestions to fix those issues would be appreciated.


- Lars-Erik - 2011-05-25

It's been a long time since I've been this excited about a new program, excellent work so far!

Got this error while adding The Beatles and scanning using AllMusic and Discogs:
Value of '12' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'. Parameter name: Value.

Quote:************** Exception Text **************
System.ArgumentOutOfRangeException: Value of '12' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'.
Parameter name: Value
at System.Windows.Forms.ProgressBar.set_Value(Int32 value)
at System.Windows.Forms.ToolStripProgressBar.set_Value(Int32 value)
at AudioMatic.Module1.getDiscography(String providerID, String provider, Int32 audioMaticID, Boolean forceUpdate)
at AudioMatic.frmMain.btnSample_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Afterwards, the progress bar says "109%" and Audio-Matic hangs. Whenever I open AM now and click on an artist, it hangs again. So I cleaned the library, re-added The Beatles, rescanned, everything seems to work ok. Don't know what happened the first time around.


- compcentral - 2011-05-25

Cuddly Cannibal Wrote:I'm having some issues with the post-processing, and I'm guessing it's something I'm doing wrong. My major issue is that for whatever reason I can't get anything to process until after I shutdown AM and start it again.

EDIT: Must have been something wonky on my end with t processing, all is well now other then my next problem.

Also, once again, most likely my fault but everything that gets processed is turning out not quite how I want it to. Nothing is capitalized properly and there are underscores in somewhat random places (while I have the post-proc setting disabled that say something to the effect to add an underscore where illegal chacters are used).

They're both small gripes though, other then that the program works pretty great for me, but any suggestions to fix those issues would be appreciated.

Can you give me some specific examples? Some characters HAVE to be replaced with something or removed because they are illegal path characters in Windows. They are the following:
  • \
  • /
  • :
  • *
  • ?
  • "
  • <
  • >
  • |

Also, in Windows, a period cannot be the last character in a folder name so something like P.O.D. needs to be changed (default behavior in A-M is to use P.O.D_) iTunes does the same thing as well by the way.

Lars-Erik Wrote:It's been a long time since I've been this excited about a new program, excellent work so far!

Got this error while adding The Beatles and scanning using AllMusic and Discogs:
Value of '12' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'. Parameter name: Value.

Afterwards, the progress bar says "109%" and Audio-Matic hangs. Whenever I open AM now and click on an artist, it hangs again. So I cleaned the library, re-added The Beatles, rescanned, everything seems to work ok. Don't know what happened the first time around.

That is a known bug that seems to happen randomly for some unknown reason. I've been trying to replicate it and get it solved to no avail so far, but I think it has to do with multiple processes trying to update the progress bar for different reasons. I will re-evaluate how I'm doing this soon and attempt to fix it... just need to find the time.


- compcentral - 2011-05-25

I've noticed some issue with post-processing when using the 'Get Discography' feature... mainly it occurs if tags are missing or incomplete since A-M has to rely on this information since it has no idea which album is which. I'm going to try to make A-M more intelligent when it comes to guessing this missing information. This will probably take some time to perfect though.


- rascalli - 2011-05-25

I am getting this error :

Image

Was trying to add my source , but now I cannot do anything
Closing the program & restarting it does not help

Any idea ?


- compcentral - 2011-05-25

rascalli Wrote:I am getting this error :

Image

Was trying to add my source , but now I cannot do anything
Closing the program & restarting it does not help

Any idea ?

What version are you using? That should be fixed in 0.24 I think if not, definitely in 0.25 (which hasn't been released yet).


- Dezie - 2011-05-25

Compcentral,
I am having the same error as Tossik:
Quote:See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: String cannot be of zero length.
Parameter name: oldValue
at System.String.ReplaceInternal(String oldValue, String newValue)
at System.String.Replace(String oldValue, String newValue)
at AudioMatic.frmMain.showTracks(String albumProviderID, String provider, Boolean dontAdd2Listview)
at AudioMatic.frmMain.lsvAMalbums_SelectedIndexChanged(Object sender, EventArgs e)
at AudioMatic.frmMain.tbcAlbums_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.TabControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.225 (RTMGDR.030319-2200)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Audio-Matic
Assembly Version: 0.24.0.0
Win32 Version: 0.24.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Audio-Matic/Audio-Matic.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 10.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
AxInterop.WMPLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Audio-Matic/AxInterop.WMPLib.DLL
----------------------------------------
Interop.WMPLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Audio-Matic/Interop.WMPLib.DLL
----------------------------------------
System.Data.SQLite
Assembly Version: 1.0.66.1
Win32 Version: 1.0.66.1
CodeBase: file:///C:/Program%20Files%20(x86)/Audio-Matic/System.Data.SQLite.DLL
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
taglib-sharp
Assembly Version: 2.0.4.0
Win32 Version: 2.0.4.0
CodeBase: file:///C:/Program%20Files%20(x86)/Audio-Matic/taglib-sharp.DLL
----------------------------------------
System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Win7 pro x64
I'm testing it using a folder with just one artist, In arist/album format with the format <num> - <artist> - <song>


- compcentral - 2011-05-26

bummer... I've still not been able to replicate that one. I think it must have something to do with the specific files you are testing with. Can you try another test artist/album, clear the library, and report back? Thanks and sorry for the trouble.


- blackjackel - 2011-05-26

I have a suggestion for your program, not sure if this is already being worked on or not.

It would be awesome if you had an "album updater" feature where it would scan each song individually and find and download the songs that are of a better encoding (such as AAC) or have a higher bitrate... this would let you "upgrade" your music album.

also, I'm getting this bug like the rest:


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: String cannot be of zero length.
Parameter name: oldValue
at System.String.ReplaceInternal(String oldValue, String newValue)
at System.String.Replace(String oldValue, String newValue)
at AudioMatic.frmMain.showTracks(String albumProviderID, String provider, Boolean dontAdd2Listview)
at AudioMatic.frmMain.showAlbums(String artistID)
at AudioMatic.frmMain.lstArtists_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ListBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ListBox.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.225 (RTMGDR.030319-2200)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Audio-Matic
Assembly Version: 0.24.0.0
Win32 Version: 0.24.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Audio-Matic/Audio-Matic.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 10.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
AxInterop.WMPLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Audio-Matic/AxInterop.WMPLib.DLL
----------------------------------------
Interop.WMPLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Audio-Matic/Interop.WMPLib.DLL
----------------------------------------
System.Data.SQLite
Assembly Version: 1.0.66.1
Win32 Version: 1.0.66.1
CodeBase: file:///C:/Program%20Files%20(x86)/Audio-Matic/System.Data.SQLite.DLL
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.






I can allow you to check my computer through VNC to fix the problem if you like...


- Dezie - 2011-05-26

compcentral Wrote:bummer... I've still not been able to replicate that one. I think it must have something to do with the specific files you are testing with. Can you try another test artist/album, clear the library, and report back? Thanks and sorry for the trouble.

No luck :/
If you want, you can TeamViewer into my machine and take a look. Not sure how much that'll help. Also, my music files are on a different drive. Think that has something to do with it?
(also, just looking at the program, not that I've been able to use it: very donationworthy. Excellent work thus far. [my offer of hosting still stands unless you've worked something better out])


- compcentral - 2011-05-26

blackjackel Wrote:I have a suggestion for your program, not sure if this is already being worked on or not.

It would be awesome if you had an "album updater" feature where it would scan each song individually and find and download the songs that are of a better encoding (such as AAC) or have a higher bitrate... this would let you "upgrade" your music album.

also, I'm getting this bug like the rest:

I can allow you to check my computer through VNC to fix the problem if you like...

The suggested feature will eventually be an option once the quality settings are working... however, it is difficult because the quality can not always be determined until after downloading depending on the source.

VNC is an idea, but I could also just use LogMeIn Rescue if since it's a one time connection. PM me if you want to go that route.

Also, something to check. Do you have the "Finished Music Folder" set to a valid path?


- compcentral - 2011-05-26

Dezie Wrote:No luck :/
If you want, you can TeamViewer into my machine and take a look. Not sure how much that'll help. Also, my music files are on a different drive. Think that has something to do with it?
(also, just looking at the program, not that I've been able to use it: very donationworthy. Excellent work thus far. [my offer of hosting still stands unless you've worked something better out])

I actually did get the hosting switched over to another server a few days ago.... so hopefully the login is working correctly.

I've never used TeamViewer before, but I could give it a shot as well. Anything to get this taken care of.


- Dezie - 2011-05-26

compcentral Wrote:I actually did get the hosting switched over to another server a few days ago.... so hopefully the login is working correctly.

I've never used TeamViewer before, but I could give it a shot as well. Anything to get this taken care of.

It's not hard to use, I can teach you if you really need.
If you want to take a look within the next hour, PM me your google talk (gmail) if you have one, if not then I guess any IM platform works.
EDIT:
Quote:Also, something to check. Do you have the "Finished Music Folder" set to a valid path?
This was the fix.
Also, not sure if this has been mentioned before, but are you planning on implementing an option where I can say: first download FLAC/APE/WAV --> then 320kbps MP3 --> 256 --> fallback on anything? (and an integrated cue sheet splitter if the copies are made with EAC). That'd be pretty cool!


- compcentral - 2011-05-26

Dezie Wrote:This was the fix.

Sweet! I'll put some error checking in to alert the user if that setting is not set or invalid. Thanks for the confirmation.

Dezie Wrote:Also, not sure if this has been mentioned before, but are you planning on implementing an option where I can say: first download FLAC/APE/WAV --> then 320kbps MP3 --> 256 --> fallback on anything?

Correct. This is on the To Do list... but as I mentioned before, it's sometimes difficult to determine the quality of some search results without actually downloading them.

Dezie Wrote:(and an integrated cue sheet splitter if the copies are made with EAC). That'd be pretty cool!

Not sure what you mean by this? Can you elaborate? Thanks.


- compcentral - 2011-05-26

Since I have a pretty decent collection of bug fixes rolled into Alpha 0.25 already, I think I'll release it sometime soon. There are some other issues that I still need to fix (mainly new bugs added with the 'Get Discography' feature) but it should still improve upon 0.24.