{"action":"created","issue":{"url":"https://api.github.com/repos/GrahamCobb/humax-unenc-ftp/issues/2","repository_url":"https://api.github.com/repos/GrahamCobb/humax-unenc-ftp","labels_url":"https://api.github.com/repos/GrahamCobb/humax-unenc-ftp/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/GrahamCobb/humax-unenc-ftp/issues/2/comments","events_url":"https://api.github.com/repos/GrahamCobb/humax-unenc-ftp/issues/2/events","html_url":"https://github.com/GrahamCobb/humax-unenc-ftp/issues/2","id":191864358,"number":2,"title":"Rebuild DNLA index","user":{"login":"mikjsmith","id":3380838,"avatar_url":"https://avatars.githubusercontent.com/u/3380838?v=3","gravatar_id":"","url":"https://api.github.com/users/mikjsmith","html_url":"https://github.com/mikjsmith","followers_url":"https://api.github.com/users/mikjsmith/followers","following_url":"https://api.github.com/users/mikjsmith/following{/other_user}","gists_url":"https://api.github.com/users/mikjsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/mikjsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikjsmith/subscriptions","organizations_url":"https://api.github.com/users/mikjsmith/orgs","repos_url":"https://api.github.com/users/mikjsmith/repos","events_url":"https://api.github.com/users/mikjsmith/events{/privacy}","received_events_url":"https://api.github.com/users/mikjsmith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-27T14:31:16Z","updated_at":"2016-11-27T19:17:54Z","closed_at":null,"body":"After a little tinkering, the simplest solution here is to copy the file (using the T2 GUI) to a new directory. This then adds the HD recording to the index.\r\n\r\nAny way of achieving the same thing in the perl script?"},"comment":{"url":"https://api.github.com/repos/GrahamCobb/humax-unenc-ftp/issues/comments/263140977","html_url":"https://github.com/GrahamCobb/humax-unenc-ftp/issues/2#issuecomment-263140977","issue_url":"https://api.github.com/repos/GrahamCobb/humax-unenc-ftp/issues/2","id":263140977,"user":{"login":"GrahamCobb","id":104163,"avatar_url":"https://avatars.githubusercontent.com/u/104163?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCobb","html_url":"https://github.com/GrahamCobb","followers_url":"https://api.github.com/users/GrahamCobb/followers","following_url":"https://api.github.com/users/GrahamCobb/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCobb/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCobb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCobb/subscriptions","organizations_url":"https://api.github.com/users/GrahamCobb/orgs","repos_url":"https://api.github.com/users/GrahamCobb/repos","events_url":"https://api.github.com/users/GrahamCobb/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCobb/received_events","type":"User","site_admin":false},"created_at":"2016-11-27T19:17:54Z","updated_at":"2016-11-27T19:17:54Z","body":"Thanks for your feedback.\r\n\r\nYes, that is one way and it would be possible to do in the script.  The disadvantages are (i) where to copy it to?, and (ii) you end up with two copies of every file, halving the effective capacity.\r\n\r\nIn the end I implemented a different solution. If the \"--rename\" option is given, the script renames the various files for that programme on the disk to add a \"-\" to the end.  This is enough to trigger getting it added to the index but does **not** cause any visible change in the GUI (the name shown in the GUI comes from the .hmt information not from the filename on the disk).\r\n\r\nThis works very well -- I use it all the time.  However, there is one small downside: if the programme is actually being watched at the time the rename happens, there is no problem but when you stop watching the system tries to update the .hmt file (to note that the programme has been watched).  This fails and it writes out an invalid .hmt file under the old name and does not update the information in the new file.  This does not cause any serious problem except that the count of programmes in the directory is wrong (so it may say there are two when there is only one, for example) and these bad files get left behind even when you delete the programme.  They are small so it isn't a real problem.\r\n\r\nBut because of that, I didn't make the --rename option the default.  I also never got around to updating the usage information in the README, which I will do."}}
{"actor":{"display_login":"GrahamCobb"}}