PageRenderTime 56ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/index.php

https://github.com/Allikin/SpotifyTools.php
PHP | 100 lines | 97 code | 3 blank | 0 comment | 2 complexity | f01efa9b006b9130e2f5546d45d997b5 MD5 | raw file
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
  3. <head>
  4. <title>Remove duplicates in Spotify</title>
  5. <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
  6. <link rel="stylesheet" type="text/css" href="styles.css" />
  7. <meta name="description" content="Quickest and easiest way to remove duplicates from your Spotify playlist; just drag it to the playlist field. Other tools this site offers are comparing, randomizing and splitting up playlists! />
  8. <meta name="version" content="6.0" />
  9. <meta property="og:title" content="Remove duplicates in Spotify playlists" />
  10. <meta property="og:type" content="website" />
  11. <meta property="og:url" content="http://thoseannoyingdupes.com/" />
  12. <meta property="og:image" content="http://thoseannoyingdupes.com/dupes_250x250.jpg" />
  13. <meta property="og:site_name" content="Those annoying dupes" />
  14. <meta property="fb:admins" content="anita.berge" />
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  16. </head>
  17. <body>
  18. <?php
  19. include('java.js');
  20. include('functions.php');
  21. ?>
  22. <div id="top" class="center">
  23. <h2>Remove duplicates in Spotify playlists</h2>
  24. <b>Simply choose your desired Spotify playlist and drag/copy it to one of the fields below to get: </b><br/>
  25. - a new list of tracks without duplicates <br/>
  26. - a list of duplicates by track URI <br/>
  27. - a list of duplicates by name and artist<br/>&nbsp;<br/>
  28. *<i>The playlist option will find possible duplicates that do not share the same URI</i>
  29. <div class="menu">
  30. Remove dupes
  31. &nbsp;|&nbsp;
  32. <a href="compare/">Compare</a>
  33. &nbsp;|&nbsp;
  34. <a href="randomizer/">Randomize</a>
  35. &nbsp;|&nbsp;
  36. <a href="split/">Split up</a>
  37. &nbsp;|&nbsp;
  38. <a href="/">Home</a>
  39. </div>
  40. </div>
  41. <div id="middle" class="center">
  42. <div id="col1" class="col">
  43. <form name='playlist' action='' method='POST'>
  44. <b>Drag/copy your <i>playlist</i> here - limited</b><br/>
  45. &nbsp;&nbsp;<font size='-2'>- will only accept up to 1000 tracks<br/>
  46. &nbsp;&nbsp;- does not handle local tracks</font><br/>&nbsp;<br/>
  47. <input type='text' name='playlist' size='37' value=""><br/>&nbsp;<br/>
  48. <input type="submit" name="submit" value="Submit"/>
  49. <input type='submit' name='reset' value="Reset"/><br/>&nbsp;<br/>
  50. <b>or<br/>&nbsp;<br/>
  51. ...drag/copy your <i>tracks</i> here - no limit!</b><br/>
  52. &nbsp;&nbsp;<font size='-2'>- as many as you want, local ones too</font><br/>&nbsp;<br/>
  53. <textarea name='tracks' rows='10' cols='35' wrap='off'></textarea><br/>&nbsp;<br/>
  54. <input type="submit" name="submit" value="Submit"/>
  55. <input type='submit' name='reset' value="Reset"/>
  56. </div>
  57. <div id="col2" class="col">
  58. <?php
  59. if (!isset($_POST['submit'])) {
  60. echo '<h3>Remove, compare, randomize, split up, get tidy!</h3>
  61. <p>
  62. Duplicates in Spotify playlists can be annoying to get rid of, as Spotify doesn\'t
  63. present an easy way to do it. Sure, Spotify "removes" duplicates if you put your
  64. playlist(s) in a playlist folder, but this solution isn\'t ideal to say the least.
  65. <br/><br/>
  66. Although there are some nice apps online that will help you create a dupe free
  67. playlist, I know quite a few people that want to keep the tracks\' add date, thus
  68. they are forced to do the tedious job of going through their lists manually.
  69. <br/><br/>
  70. I decided it would be a fun project to try to make this process less painful, and
  71. this app is the result.
  72. <br/><br/>
  73. This application will help you remove Spotify duplicates quickly and easily. Like
  74. other apps it will make an entirely new playlist for you to copy, but it will also
  75. list the dupes alphabetically by title and artist, making it easy to find and
  76. remove the tracks without having to mess with the added date. Also, a list of the
  77. Spotify duplicate URIs will be generated for you.
  78. <br/><br/>
  79. Notice that on the top there is a link for comparing Spotify playlists. This
  80. feature will list duplicates between playlists or unique tracks in them, according
  81. to your choice of output. I also added features for randomizing and
  82. splitting up playlists.
  83. <br/><br/>
  84. If you like this app, please share it with your friends, and make sure you give it
  85. a thumbs up! :-)
  86. </p>
  87. <br/><br/>
  88. <p style="font-size:10px;font-style:italic;">
  89. Thanks to <a target="_blank" href="http://www.hardasarock.org">www.hardasarock.org</a> for
  90. helping out with this website.
  91. </p>';
  92. } else {
  93. include('dupes.php');
  94. }?>
  95. </div>
  96. </div>
  97. <?php include('footer.php');?>