Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 72924 Details for
Bug 110534
request for sharpmusique
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix issues
sharpmusique-1.0.patch (text/plain), 3.37 KB, created by
Aman Gupta
on 2005-11-14 20:23:41 UTC
(
hide
)
Description:
patch to fix issues
Filename:
MIME Type:
Creator:
Aman Gupta
Created:
2005-11-14 20:23:41 UTC
Size:
3.37 KB
patch
obsolete
>--- src/SharpMusique.cs 2005-09-16 20:44:11.000000000 -0400 >+++ src/SharpMusique.cs.new 2005-11-09 14:42:12.000000000 -0500 >@@ -526,10 +526,18 @@ > string strSongName; > string strExplicit = String.Empty; > >- Hashtable meta = dict[ "metaData" ] != null ? >- (Hashtable)dict[ "metaData" ] : dict; >+ Hashtable meta; >+ >+ if( dict[ "metaData" ] != null ) { >+ meta = (Hashtable)dict[ "metaData" ]; >+ } else if( dict[ "metadata" ] != null ) { >+ meta = (Hashtable)dict[ "metadata" ]; >+ } else { >+ meta = dict; >+ } >+ >+ strSongName = (string)meta[ "itemName" ]; > >- strSongName = (string)meta[ "songName" ]; > strTime = TimeSpan.FromSeconds( > (int)meta[ "duration" ] / 1000 ).ToString(); > if( strTime.StartsWith( "00:" ) ) >@@ -613,11 +621,18 @@ > > if( song[ "downloadKey" ] == null ) > { >- Hashtable meta = song[ "metaData" ] != null ? >- (Hashtable)song[ "metaData" ] : song; >+ Hashtable meta; > > PurchaseDialog dlg = new PurchaseDialog( MainWindow ); > >+ if( song[ "metaData" ] != null ) { >+ meta = (Hashtable)song[ "metaData" ]; >+ } else if( song[ "metadata" ] != null ) { >+ meta = (Hashtable)song[ "metadata" ]; >+ } else { >+ meta = song; >+ } >+ > if( song[ "isAlbum" ] != null && (bool)song[ "isAlbum" ] == true ) > { > dlg.Title = "*"; >@@ -625,7 +640,7 @@ > } > else > { >- dlg.Title = (string)meta[ "songName" ]; >+ dlg.Title = (string)meta[ "itemName" ]; > dlg.Artist = (string)meta[ "artistName" ]; > } > dlg.Album = (string)meta[ "playlistName" ]; >@@ -696,15 +711,12 @@ > RunOnMainThread.Run( this, "DoStatusbarUpdate", > new object[] { cidProgress, "Downloading", 2 } ); > >- Hashtable meta = song[ "metaData" ] != null ? >- (Hashtable)song[ "metaData" ] : song; >+ Hashtable meta; > > byte [] sb = Store.DownloadSong( song, > new FairStore.Progress( DoProgressUpdate ) ); > >- string strFileName = String.Format( "{0} - {1} - {2}.m4a", >- meta[ "playlistArtistName" ], meta[ "playlistName" ], >- meta[ "songName" ] ); >+ string strFileName; > > string [,] strReps = new string[,] > { >@@ -713,6 +725,18 @@ > { "<", "" }, { ">", "" }, { "|", "" } > }; > >+ if( song[ "metaData" ] != null ) { >+ meta = (Hashtable)song[ "metaData" ]; >+ } else if( song[ "metadata" ] != null ) { >+ meta = (Hashtable)song[ "metadata" ]; >+ } else { >+ meta = song; >+ } >+ >+ strFileName = String.Format( "{0} - {1} - {2}.m4a", >+ meta[ "playlistArtistName" ], meta[ "playlistName" ], >+ meta[ "itemName" ] ); >+ > for( int i = 0; i < strReps.Length / 2; i++ ) > { > strFileName = strFileName.Replace( strReps[ i, 0 ], >@@ -1168,7 +1192,7 @@ > > private void ViewAlbumThread( object State ) > { >- string strPlaylistId = (string)State; >+ string strPlaylistId = State.ToString(); > > try > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 110534
:
71493
|
71513
| 72924 |
72925