Skip to content

Latest commit

 

History

History
455 lines (396 loc) · 20.6 KB

CHANGES.md

File metadata and controls

455 lines (396 loc) · 20.6 KB

CHANGES

v8.0.1 (2022-Oct-18):

  • Increased API polling from 1s to 2s. Track changes may reflect slightly slower. This change was made due to Snip getting rate limited by Spotify.
  • Changed it so that if Snip does hit the rate limit that it won't reset and cause duplicate entries in the history file.

v8.0.0 (2022-Oct-08):

  • Improved callback handler for Spotify authentication. It should work much more reliably and consistent.
  • Removed local Spotify player detection completely. Snip now relies on all information provided by the web API. This allows much more reliable and accurate detection of what's playing. Additionally, a benefit of this is that you can play Spotify from any device or computer and Snip will detect it.
  • Local songs in Spotify will display their information correctly. However, album artwork is not supported by the Spotify API and will not work.
  • Added a blank "No Player" option before Spotify and iTunes. This allows Snip to run without requiring you to sign into Spotify first. This is useful for users only wishing to use it for iTunes. After initial launch right-click on the tray icon and choose your player. NOTE: After selecting player if you switch between players multiple times Snip will not detect updates anymore.

v7.0.5 (2019-Sep-15):

  • Made Spotify detection substantially better. Due to Windows API limits you cannot get the main window handle from a process minimized to the system tray. With this version Snip will only need to see the Spotify window one time and it will work from then on until you restart Spotify.

v7.0.2 (2019-Jul-29):

  • Changed timer from 5 seconds back to 1 second. However Snip now uses the titlebar of Spotify to determine when tracks change and will only fetch new data when the titlebar changes. This ultimately cuts down on API calls significantly.
  • Fixed issue where podcasts and non-track information would crash Snip. Spotify does not provide any data on podcasts unfortunately.

v7.0.1 (2019-Jul-24):

  • Reduced the API call rate from 1 second to 5 seconds. There may be up to a five second delay when a track changes before Snip detects it but it will significantly reduce the amount of API calls happening.
  • Implemented API call retry when rate limit exceeded.

v7.0.0 (2019-Jul-20):

  • Brought Spotify code up to date. You will have to authorize your account.
  • Removed all media player support except Spotify and iTunes. (I don't have the time to maintain all of the code for all of the media players. I'm sorry about that. Perhaps with a rewrite I can make Snip modular and other people can maintain their own plugins.)
  • Polished up code some and removed a lot of unused code.
  • Tested against iTunes 12.9.5.7 (non-Windows Store version).
  • Tested against Spotify 1.1.10.540.gfcf0430f (non-Windows Store version.)
  • Project is now built with Visual Studio 2019 (previous was 2017).

v6.10.2 (2018-Jul-24):

  • Merged pull request #267 from GenesisFR, which refactors a lot of code and clears out artwork when Snip is exited.
  • #306 #306 Snip now checks the parent process to make sure it's actually Spotify.

v6.10.1 (2018-Jul-22):

  • #304 #299 Snip will now require administrator access upon launching.
  • Fixed version update checking not working.

v6.10.0 (2018-Jul-21):

  • When enabling save separate files Snip will now save Spotify metadata to Snip_Metadata.json.
  • #255 #255 Fixed Spotify hotkeys.
  • Cleaned up localization code internally.
  • #199 #199 Snip can now be run multiple times. I'm not sure how this will work but have at it.
  • Changed Spotify back to AnyCPU from 64-bit.
  • #299 #299 Fixes Spotify not working since Spotify shut down their desktop API.

v6.9.5 (2018-Apr-01):

  • Updated copyright to 2018.
  • Renamed quodlibet to Quod Libet.
  • Moved Quod Libet in the menu.
  • Snip is now 64-bit only.
  • Snip now erases Snip.txt on exit.
  • If an ad is playing in Spotify it will empty the text file.
  • Removed excess strings from resource files.
  • Removed "tiny" size from artwork as Spotify stopped supporting it.
  • Spotify port detection code is now threaded so Snip will no longer freeze.

v6.9.1 (2017-Jul-06):

  • Czech translation corrections by jingtongtangflee.
  • Snip will now loop through various ports to find the correct port to connect with Spotify.
  • Changed snip.spotilocal.com to 127.0.0.1.

v6.9.0 (2017-Jun-28):

  • Danish translation provided by Jens Møller.
  • Changed the port that Snip uses to get a token from SpotifyWebHelper. This should hopefully allow more users to successfully obtain a token.

v6.8.0 (2017-Jun-25):

  • Added option to cache Spotify track information. This option is enabled by default.
  • Changed Snip to remember settings for all major versions in the future. This means that anything Snip v6.x.x will share settings. If a new feature or option were added that would break compatibility it will force Snip to bump up to the next major version. I also removed my name from the registry path so it will now just be located under Snip.
  • Fixed possible uppercase/lowercase issues based on user's locale setting.
  • Added Quod Libet player support (Support added by Jay Lapham).
  • Changed Spotify player check behavior. If it can't connect to the local web service it will now show that Spotify is not running.

v6.5.0 (2017-Jun-14):

  • Added support for Google Play Music Desktop Player
  • Added option to toggle song text as how it appears, all upper case, or all lower case. There are six new hidden variables to support this. They are: $$ut, $$lt, $$ua, $$la, $$ul, $$ll

v6.1.0 (2017-Jun-11):

  • Rewrote Spotify code to take advantage of the local web server instead of searching for track information using Spotify's window title.
  • Lots of code changes and cleanups behind the scenes.

v6.0.5 (2017-Jun-10):

  • Reverted/fixed some VLC code until a proper fix can be made. Fix provided by KingCrazy.
  • Changed how Snip gets the authorization tokens from Spotify. It's now per user instead of one central server token.

v6.0.2 (2017-Jun-04):

  • Added a user-agent to Snip's Spotify code

v6.0.1 (2017-Jun-04):

  • Fixed Spotify not working after 60 minutes.

v6.0.0 (2017-Jun-04):

  • Has it really been this long?
  • #153 #153 Fix for Spotify's API now requiring authorization
  • Greek translation provided by Stathis Galazios (nFin1ty)
  • Fix for VLC player trimming titles prematurely provided by KingCrazy
  • Fixed spelling in German translations

v5.6.5 (2016-Nov-27):

  • #125 #125 Fix for filtering out file extensions from VLC's titlebar. Fix provided by Bartosz Wiśniewski (PoprostuRonin)
  • Added Czech translation thanks to jingtongtangflee.
  • #129 #129 Fix for variables being replaced in track names and artist names when they shouldn't be. Because of this change all variables have been changed from $var to $$var.
  • #124 #124 Fix for beta versions of foobar2000 not having the version stripped out of the title.

v5.6.0 (2016-Oct-01):

  • #119 #119 Fix for separate files not using output format.
  • #118 #118 Some users of Spotify have "Spotify" in the window title and that breaks the search.
  • Fixed an issue where Snip would repeatedly query Spotify's search until it got a result.
  • #87 #87 Prevent Snip crashing when an invalid JSON file is downloaded. It will fall back to just showing the window title in this case.
  • #59 #59 Fixes an issue where songs with no artist in the ID3 tag would not display in Snip when using iTunes.
  • When saving output format it will now update right away instead of waiting for the next song to play.

v5.5.0 (2016-Sep-23):

  • Fix for song title selection if the album has the same name as the track being played.
  • #116 #116 Fix for finding titles from Spotify with a : in them (among other characters).
  • Added Spanish (es-CL) translation thanks to NioZero.
  • #110 #110 Added hidden $i variable. This can be used in the output format settings to display the Spotify track ID.

v5.4.0 (2016-Sep-04):

  • #110 #110 Implemented Spotify track ID saving. If saving files separately is enabled then a new file, Snip_TrackId.txt, will be created that contains the Spotify track ID.
  • #101 #101 When Snip queries Spotify's servers for track information it will now use the result with the highest "popularity" rating. This change hopefully will result in more accurate track selection.
  • #100 #100 Cleaned up Spotify artwork downloading. It will now download the files provided in the main JSON file instead of downloading the JSON for the embedded site and then using the images linked there. This potentially will result in less blank artwork.

v5.3.1 (2016-Mar-30):

  • Fix for crash when using Spotify and a song title had a / in it. This was caused by Spotify's API not liking the use of a /. I now replaced the / with a space in code and it's worked on all songs I've tested so far. This fixes #91 #91.

v5.3.0 (2016-Feb-06):

  • JSON is now downloaded as UTF8. This will fix an issue where non-standard characters were showing up wrong.
  • Added the ability to use $n in the output format. This will add a newline wherever used.
  • Changed the way VLC was detected and the text handled. This should fix problems people using VLC in a different language were having.
  • Added the ability for Snip to check if there's a new version available. If a new version is found then the place where Snip shows the current version in the context menu will be replaced with text showing a new version is available. You can click this text to open your web browser to download the new version.
  • Feel free to update translation files and/or submit new languages.

v5.2.1 (2016-Jan-21):

  • Fixed an issue where blank artwork would be repeatedly saved if Spotify was not running.

v5.2.0 (2016-Jan-20):

  • Spotify deprecated the API Snip was using. Snip now uses the new API.
  • Fixed crash when song titles are too long.

v5.1.0 (2015-Aug-16):

  • Added feature allowing Snip to display a popup notification on track change.
  • New Snip icon. Snip icon also moved out of the form resource and into a global resource.
  • Fixed issue with Spotify not getting track information correctly if the title had a : in it.
  • Fixed Snip writing which player it switched to when emptying files is enabled.

v5.0.5 (2015-Jul-21):

  • Renamed Swedish resource from se-SE to sv-SE.
  • Added Norwegian translation thanks to gummi.
  • Fixed Snip not saving settings in the event of not exiting via right-click.
  • Fixed Snip not writing song titles to text files for players other than iTunes or Spotify.

v5.0.1 (2015-Jul-12):

  • Fixed advertisements in Spotify causing a crash.
  • Updated Dutch translation by Eegee
  • Fix for Visual Studio paths with spaces by Eegee

v5.0.0 (2015-Jul-05):

  • Updated Spotify code to work with the latest client.
  • Optimized text handling globally so it won't write text unless it changed.
  • Updated Swedish translation by Lukas Michanek

v4.6.0 (2014-Aug-16):

  • Fixed artist, track, and album files not being emptied out.
  • Removed hidden debugging option to track execution times of methods.
  • Cleaned up code for Spotify to cut down on complexity.
  • Added support for saving the album name when using Spotify.

v4.5.0 (2014-Jul-27):

  • Added support for VLC.

v4.4.2 (2014-Jul-11):

  • Dropped privilege requirement from Administrator to AsInvoker.

v4.4.1 (2014-Jul-07):

  • Alert the user if one of the hotkeys is already registered globally and that the hotkey will be skipped by Snip.
    • This is a temporary solution for some silent crashes until I can implement custom hotkeys.

v4.4.0 (2014-Jul-07):

  • Added version number to context menu.
  • A message will now appear asking the user to exit iTunes if there is an issue loading the iTunes COM library.
  • Fixed issue with not saving information if artwork is missing in iTunes.
  • Added option to enable/disable hotkeys.
  • Added an option to save text that no track is playing.
  • Automated resgen usage to generate .resources files automatically.
  • Removed signing from project and placed it in a separate external script.

v4.3.1 (2014-Jul-03):

  • Added some exception catching to hopefully narrow down some issues.

v4.3.0 (2014-May-25):

  • Added Swedish translation thanks to Lukas Michanek.
  • Fixed missing leading space on separator.
  • Added minimal debugging support.

v4.1.0 (2014-Apr-26):

  • Settings and defaults consolidated and made more consistent.
  • Window messages moved to own enum.
  • Complete change in hotkey functionality. Changed from 1ms timer to events.
    • Hotkey timer deleted as well as two classes.
  • Replaced GetAsyncKeyState() with RegisterHotKey() and UnregisterHotKey().

v4.0.3 (2014-Apr-19):

  • Fixed crash when image file was in use and Snip tried to overwrite it.
  • Removed some unnecessary code.
  • Switched to an even smaller 1x1 transparent PNG for failed artwork.
  • Fixed settings not truly having a default whenever a new version is ran.
  • Switching media players now overwrites the artwork with a blank image.
  • Fixed crash when switching from iTunes to another player and then manipulating iTunes.

v4.0.1 (2014-Apr-11):

  • Caught exception when ws.spotify.com couldn't be resolved. This fixes #10 #10 by catching the exception thrown when ws.spotify.com could not be resolved. In the case the name cannot be resolved then a blank image will be saved in its place.
  • Remove unnecessary code related to saving album artwork to disk. Hopefully this fixes #9 #9.

v4.0.0 (2014-Mar-02):

  • foobar2000 will now be detected via exe name instead of window class name.
  • Fixed crash related to invalid JSON.
  • Renamed default strings file to prevent a crash.
  • Major code re-factoring.

v3.7.0 (2014-Feb-06):

  • Added support for foobar2000.

v3.6.0 (2014-Jan-29):

  • Album artwork for Spotify is now saved by album ID and not track ID.
  • Added a WebException catch that will just save a blank image if an error occurs.
  • Increased the timeout from 5 seconds to 10 seconds.
  • Changed the artwork download to be asynchronous.

v3.5.0 (2014-Jan-26):

  • A lot of code was refactored to make the code easier to manage.
  • All warnings from Code Analysis were fixed.
  • Updated AUTHORS.txt
  • Updated Copyright format in all of the files.

v3.1.0 (2014-Jan-05):

  • Renamed Cache Spotify Album Artwork to Keep Spotify Album Artwork.
  • Added French translation. Thanks, MindFlaw!
  • Added Dutch translation. Thanks, Azeirah!
  • Resized the Output Format form to be wider to accomodate languages that might require more room to display text.

v3.0.1 (2013-Dec-30):

  • Manifest file modified to require Administrator rights.
  • Added a link to the project on GitHub to the README.txt file.
  • Updated the strings file with detailed descriptions to hopefully help translators understand what everything is for.

v3.0.0 (2013-Dec-22):

  • Added the ability to select album artwork resolution for Spotify. The default size is Tiny since you really shouldn't need much larger for displaying the image on your stream. However, the choice is there.
    • Tiny = 60x60
    • Small = 120x120
    • Medium = 300x300
    • Large = 640x640
  • Strip " - Explicit Album Version" from song titles as it messes up the search results.
  • Rather than take the first result provided from the search with Spotify it will now loop through the results until it finds a title that matches what's playing. Results are still not 100% because the song title shown inside Spotify isn't always the result you get with their search.
  • StyleCop dropped in favor of Code Analysis built in to MSVC.
  • Unused code removed.
  • Memory leaks fixed.
  • Globalization support added to make it easy to translate and use in languages other than English. (Feel free to e-mail me about this).
  • Removed warning about the application already running. It will just not do anything now.
  • Updated SimpleJson to the latest version.
  • Removed user csproj file from repository.

v2.8.0 (2013-Dec-21):

  • Snip will download higher resolution album artwork using a more efficient method. This patch was provided by Kailan Blanks. Thank you.
  • Added an option to cache Spotify album artwork locally. If this option is enabled then it will download and save the artwork locally to a separate directory, and then each time that track is played it will use the saved artwork instead of redownloading it.
  • Due to the contribution I added an AUTHORS.txt file.
  • Split structs and classes into regions.
  • I forced the download timeout to 5 seconds so that there's not too much of a wait between the time the album artwork starts downloading and the text file is updated.

v2.7.0 (Unreleased):

  • Moved program information to its own class.
  • Moved unsafe native methods to their own class.
  • Made StyleCop mostly happy.
  • Moved key binds to their own class.
  • Moved key states to their own class.
  • Moved media player fields to their own class.
  • Snip.txt empties when no track is playing or other generic information is shown.

v2.6.0 (2013-Apr-20):

  • Added SimpleJson as a way to parse json easily.
  • Changed project from .Net Framework 4 Client Profile to .Net Framework 4.
  • Added a reference to System.Web so HttpUtility.UrlEncode() could be used.
  • Changed the way album artwork and track information are discovered with Spotify. It no longer tries to get the exact track ID within Spotify's memory. It will now query the Spotify API on the web using the artist name and track title. If a match is found it will pull the track ID from there and then query the regular Spotify HTML page for artwork.
  • The change above allowed me to remove a lot of unnecessary code, including ReadProcessMemory(), GetWindowThreadProcessId(), and FindInMemory().
  • Removed some unused WindowMessage commands.

v2.5.0 (2013-Apr-20):

  • Changed the readonly values to consts and renamed them.
  • Embedded the blank image as a byte array instead of having a separate Snip_Blank.jpg.
  • Created a SaveBlankImage() method that saves the blank image in case of any error.
  • Changed the way I get Spotify album artwork. It now uses the regular Spotify HTML page instead of the embed page. This provides a lower resolution image than previously but it works.
  • Added a ImageFromByteArray() method that converts a byte array to an Image.

v2.0.1 (2013-Jan-17):

  • Fixed streams in Winamp causing Snip to crash.

v2.0 (2013-Jan-17):

  • Prior change in v1.6.5 that I forgot to mention:
    • Snip now defaults to have most options disabled by default.
  • Winamp support added.
  • Added the ability to save album information (currently only iTunes supports this).
  • Volume up/down hotkeys now work for iTunes.
  • The separator now has spaces and the code no longer inserts its own spaces.

v1.6.5 (2013-Jan-4):

  • Fixed a bug preventing output format working with iTunes.
  • Added code to make sure only one instance of Snip can run at once.

v1.6 (2013-Jan-1):

  • Added the ability to set a custom output format.
    • If you save the track and artist information to separate files then make sure the separator that you use does NOT appear in any track or artist title. If it does then the text will not get separated correctly.
  • Expanded the memory range that Snip searches for the track information.

v1.5 (2012-Nov-11):

  • Snip_Artist.txt and Snip_Track.txt will now be written. These can be used to display the artist or track name in different styles.
  • Added support for saving image artwork. Spotify's support is rather hacky so it may not always work, or it may cause Spotify to randomly stop playing music.

v1.1.1 (2012-Sep-14):

  • Fixed Snip_History.txt to use Environment.NewLine instead of \n.

v1.1 (2012-Sep-14):

  • Added support for saving track history.
    • This will save the history to a new text file called Snip_History.txt.

v1.0 (2012-Aug-12):

  • Initial Release