{"action":"created","issue":{"url":"https://api.github.com/repos/clementine-player/Clementine/issues/5351","repository_url":"https://api.github.com/repos/clementine-player/Clementine","labels_url":"https://api.github.com/repos/clementine-player/Clementine/issues/5351/labels{/name}","comments_url":"https://api.github.com/repos/clementine-player/Clementine/issues/5351/comments","events_url":"https://api.github.com/repos/clementine-player/Clementine/issues/5351/events","html_url":"https://github.com/clementine-player/Clementine/issues/5351","id":149779968,"number":5351,"title":"Rating not available when path to file differs from library path","user":{"login":"mohicanb","id":12805023,"avatar_url":"https://avatars.githubusercontent.com/u/12805023?v=3","gravatar_id":"","url":"https://api.github.com/users/mohicanb","html_url":"https://github.com/mohicanb","followers_url":"https://api.github.com/users/mohicanb/followers","following_url":"https://api.github.com/users/mohicanb/following{/other_user}","gists_url":"https://api.github.com/users/mohicanb/gists{/gist_id}","starred_url":"https://api.github.com/users/mohicanb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohicanb/subscriptions","organizations_url":"https://api.github.com/users/mohicanb/orgs","repos_url":"https://api.github.com/users/mohicanb/repos","events_url":"https://api.github.com/users/mohicanb/events{/privacy}","received_events_url":"https://api.github.com/users/mohicanb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-20T14:13:34Z","updated_at":"2016-04-20T14:55:11Z","closed_at":"2016-04-20T14:55:11Z","body":"### Before posting\r\nissue #5065 may be a duplicate of this one.\r\n\r\n### System information\r\n\r\n- Operating System: Ubuntu 14.04\r\n- Clementine version: 1.2 (from Ubuntu repositories) and 1.3 (from ppa)\r\n\r\n### Expected behaviour / actual behaviour\r\nFor some files, under some circumstances, **when adding them from the disk files**, rating is not available. I also observed that in this case automatic tags such as last played date, number of listening and score, do not update.\r\n\r\nSometimes this only occurs when adding with drag and drop, sometimes it occurs also when adding from the context menu.\r\n\r\n### Steps to reproduce the problem (only for bugs)\r\n\r\nSummary: the problem occurs when the path to the file, displayed on the playlist, column 'file (with path)' is not included in the library folders.\r\nThis means that **it occurs both for files that are not included in the library and for files that are accessed via another path (through symbolic links).**\r\nClementine behaviour is different when adding a file with the context menu: it adds the file with direct path to disk file, and when adding with drag and drop: it adds the file with the path specified in the file browser box (this may use symbolic links).\r\n\r\n1/ store your music files in different disk partition that /\r\ne.g. /media/DATA/username/Music/musicfile.ogg\r\n(or put it on a USB stick)\r\n\r\n2/ erase (or rename) the /home/username/Music folder and add a symbolic link in your /home/username/ folder that points to the /media/DATA/username/Music folder, give it the name 'Music'\r\n\r\n3/ configure your Clementine library: add folder /home/username/Music\r\nThe resulting path will be added: /media/DATA/username/Music\r\n\r\n4/ BROWSE USING SYMBOLIC LINK\r\nin the file tab, browse to the path /home/username/Music/\r\n\r\n4.1/ add the musicfile.ogg to a playlist with the context menu\r\n-> the path in the playlist will be: '/media/DATA/...', the rating will be available\r\n\r\n4.2/ add the musicfile.ogg to a playlist with drag and drop\r\n-> the path in the playlist will be: '/home/...', the rating will NOT be available\r\n(I guess because Clementine will not recognise that the file belongs to the library)\r\n**This is a bug.**\r\n\r\n5/ BROWSE DIRECT PATH \r\nin the file tab, browse to the path /media/DATA/username/Music/\r\n\r\n5.1/ add the musicfile.ogg to a playlist with the context menu\r\n-> the path in the playlist will be: '/media/DATA/...', the rating will be available\r\n\r\n5.2/ add the musicfile.ogg to a playlist with the context menu\r\n-> the path in the playlist will be: '/media/DATA/...', the rating will be available\r\n\r\n6/ FILE NOT IN LIBRARY (this may not be considered a bug)\r\n\r\ncopy your musicfile.ogg in the /media/DATA/username/Documents folder\r\n\r\nin the file tab, browse to the direct path /media/DATA/username/Documents/\r\n\r\n6.1/ add the musicfile.ogg to a playlist with the context menu\r\n-> the path in the playlist will be: '/media/DATA/...', the rating will NOT be available\r\n\r\n6.2/ add the musicfile.ogg to a playlist with drag and drop\r\n-> the path in the playlist will be: '/media/DATA/...', the rating will NOT be available"},"comment":{"url":"https://api.github.com/repos/clementine-player/Clementine/issues/comments/212460747","html_url":"https://github.com/clementine-player/Clementine/issues/5351#issuecomment-212460747","issue_url":"https://api.github.com/repos/clementine-player/Clementine/issues/5351","id":212460747,"user":{"login":"hatstand","id":314491,"avatar_url":"https://avatars.githubusercontent.com/u/314491?v=3","gravatar_id":"","url":"https://api.github.com/users/hatstand","html_url":"https://github.com/hatstand","followers_url":"https://api.github.com/users/hatstand/followers","following_url":"https://api.github.com/users/hatstand/following{/other_user}","gists_url":"https://api.github.com/users/hatstand/gists{/gist_id}","starred_url":"https://api.github.com/users/hatstand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hatstand/subscriptions","organizations_url":"https://api.github.com/users/hatstand/orgs","repos_url":"https://api.github.com/users/hatstand/repos","events_url":"https://api.github.com/users/hatstand/events{/privacy}","received_events_url":"https://api.github.com/users/hatstand/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T14:55:11Z","updated_at":"2016-04-20T14:55:11Z","body":"Ratings are only intended to work for the library."}}