{"action":"closed","issue":{"url":"https://api.github.com/repos/arvidn/libtorrent/issues/763","repository_url":"https://api.github.com/repos/arvidn/libtorrent","labels_url":"https://api.github.com/repos/arvidn/libtorrent/issues/763/labels{/name}","comments_url":"https://api.github.com/repos/arvidn/libtorrent/issues/763/comments","events_url":"https://api.github.com/repos/arvidn/libtorrent/issues/763/events","html_url":"https://github.com/arvidn/libtorrent/issues/763","id":157269424,"number":763,"title":"Handle arbitrary multi-file url_seed redirects","user":{"login":"dbnicholson","id":6495518,"avatar_url":"https://avatars.githubusercontent.com/u/6495518?v=3","gravatar_id":"","url":"https://api.github.com/users/dbnicholson","html_url":"https://github.com/dbnicholson","followers_url":"https://api.github.com/users/dbnicholson/followers","following_url":"https://api.github.com/users/dbnicholson/following{/other_user}","gists_url":"https://api.github.com/users/dbnicholson/gists{/gist_id}","starred_url":"https://api.github.com/users/dbnicholson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbnicholson/subscriptions","organizations_url":"https://api.github.com/users/dbnicholson/orgs","repos_url":"https://api.github.com/users/dbnicholson/repos","events_url":"https://api.github.com/users/dbnicholson/events{/privacy}","received_events_url":"https://api.github.com/users/dbnicholson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-05-27T18:52:54Z","updated_at":"2016-10-24T06:04:16Z","closed_at":"2016-10-24T06:04:16Z","body":"libtorrent version (or branch): master\r\nplatform/architecture: linux/x86_64\r\ncompiler and compiler version: g++ 5.3.1\r\n\r\nWe have a multi-file torrent file with a url-list pointing to a single path per the spec. Something like this:\r\n```\r\n{'info': {'files': [{'length': 2002999058, 'path': ['foo']},\r\n                    {'length': 3872, 'path': ['bar']}],\r\n          'name': 'mytorrent',\r\n          'piece length': 262144,\r\n          'pieces': 'z\\xdf;3\\x96\\x82\\x1c...'},\r\n 'url-list': 'http://example.com/files/'}\r\n```\r\nHowever, the files don't exist on the server in this directory structure. Instead, it responds with 301s to the actual location. This allows us to create torrents with arbitrary structure without having to disturb the actual layout of the (very large) files on disk.\r\n\r\nUnfortunately, it appears that libtorrent throws `invalid_redirection` for this. What would it take support that? I see the TODO in the code, but I'm not familiar with what it would take to do it.\r\n\r\nThanks!"}}
{"actor":{"display_login":"arvidn"}}