{"id":528,"date":"2019-05-05T22:15:22","date_gmt":"2019-05-05T14:15:22","guid":{"rendered":"http:\/\/www.xxhjkl.me\/?p=528"},"modified":"2020-04-21T16:45:43","modified_gmt":"2020-04-21T08:45:43","slug":"qbittorrent%e9%85%8d%e5%90%88pyone%e4%b8%8b%e8%bd%bd%e5%ae%8c%e7%a7%8d%e5%ad%90%e8%87%aa%e5%8a%a8%e4%b8%8a%e4%bc%a0-onedrive","status":"publish","type":"post","link":"https:\/\/www.xxhjkl.me\/?p=528","title":{"rendered":"qbittorrent\u914d\u5408pyone\u4e0b\u8f7d\u5b8c\u79cd\u5b50\u81ea\u52a8\u4e0a\u4f20 OneDrive"},"content":{"rendered":"\n<p> \u624b\u5934\u6709\u4e2ae3\u7684\u5b50\u8d26\u53f7\u3002\u67095T\u7a7a\u95f4\u4e0d\u7528\u8d77\u6765\u5f88\u96be\u53d7\uff0c\u5c31\u60f3\u4ecePT\u5f04\u70b9\u8d44\u6e90\u586b\u6ee1\u5427\u3002@Abbey\u5927\u4f6c\u5f04\u5f97\u79bb\u7ebf\u4e0b\u8f7d\u662faria2\uff0c\u8fd9\u73a9\u610f\u5bf9pt\u652f\u6301\u4e0d\u5927\u597d\uff0c\u53e6\u5916\u5c31\u662f\u5927\u4f6c\u597d\u50cf\u6ca1\u6709\u628aaria2\u6362\u6210qb\u7684\u610f\u613f\u3002<br>\u600e\u4e48\u88c5pyone\uff0c\u8fd9\u91cc\u5c31\u4e0d\u8bf4\u4e86\uff0c\u4ee5\u540e\u6709\u7a7a\u518d\u5199\uff0c\u5047\u8bbe\u4f60\u5df2\u7ecf\u88c5\u597d pyone \u3002qb\u7684\u5b89\u88c5\u53ef\u4ee5\u770b\u6211\u535a\u5ba2\u7684\u53e6\u5916\u7684\u6587\u7ae0\u3002<\/p>\n\n\n\n<p>\u5229\u7528qbittorrent\u81ea\u5e26\u7684\uff0cTorrent \u5b8c\u6210\u65f6\u8fd0\u884c\u5916\u90e8\u7a0b\u5e8f\u529f\u80fd\u3002\u5f04\u4e2a\u8c03\u7528pyone\u4e0a\u4f20\u7684\u811a\u672c\uff0c\u4e0b\u8f7d\u5b8c\u4ee5\u540e\u89e6\u53d1\u5c31\u884c\u3002\u4e3a\u5565\u4e0d\u7528rclone\uff0c\u56e0\u4e3a\u4e4b\u524d\u6211\u4e5f\u53d1\u5e16\u95ee\u8fc7\uff0cG\u53e3\u7684\u673a\u5668\uff0c\u7528rclone\u53ea\u670930M\u7684\u4e0a\u884c\u901f\u5ea6\uff0c\u5b9e\u5728\u65e0\u6cd5\u5fcd\u53d7\u3002\u4ee5\u4e0b\u662f\u811a\u672c\uff0c\u6c34\u5e73\u6bd4\u8f83\u4f4e\uff0c\u5927\u4f6c\u52ff\u55b7 <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\nfile=$1\nif &#91; -d \"$file\" ];then\necho \"$file is a directory\"\npython \/root\/PyOne\/function.py UploadDir \"$1\" \"\/PT\/$2\" A\nelse\necho \"$file is a file\"\npython \/root\/PyOne\/function.py Upload \"$1\" \"\/PT\/\" A\nfi\n<\/code><\/pre>\n\n\n\n<p>\u56e0\u4e3apyone\u7684\u4e0a\u4f20\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u7528\u7684\u547d\u4ee4\u4e0d\u4e00\u6837\uff0c\u5c31\u5206\u5f00\u5199\u4e862\u884c\u3002<br>\u5355\u6587\u4ef6\u4e0a\u4f20\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python \/root\/PyOne\/function.py Upload \u670d\u52a1\u5668\u6587\u4ef6\u7edd\u5bf9\u8def\u5f84 onedrive\u8def\u5f84 \u76d8\u7b26<\/code><\/pre>\n\n\n\n<p> \u6587\u4ef6\u5939\u4e0a\u4f20\uff1a <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python \/root\/PyOne\/function.py UploadDir \u670d\u52a1\u5668\u76ee\u5f55\u7edd\u5bf9\u8def\u5f84 onedrive\u8def\u5f84 \u76d8\u7b26<\/code><\/pre>\n\n\n\n<p> <\/p>\n\n\n\n<p>\n\n\u5177\u4f53\u53ef\u4ee5\u770b\u4e0bpyone\u7684\u6587\u6863\u3002<\/p>\n\n\n\n<p>\u7136\u540e\u53bbqbittorrent\u7684webui\u4e0a\uff0c\u70b9\u8bbe\u7f6e\uff0c\u628aTorrent \u5b8c\u6210\u65f6\u8fd0\u884c\u5916\u90e8\u7a0b\u5e8f\u529f\u80fd&nbsp;&nbsp;\u52fe\u8d77\u6765<br>\u5047\u8bbe\u6211\u628a\u811a\u672c\u653e\u5728\/home\/downloads\/\u4e0b\u9762<br>\u90a3\u4e48web ui\u4e0a&nbsp;&nbsp;Torrent \u5b8c\u6210\u65f6\u8fd0\u884c\u5916\u90e8\u7a0b\u5e8f\u529f\u80fd&nbsp; &nbsp;\u8fd9\u91cc\u586b\/home\/downloads\/up.sh &#8220;%F&#8221; &#8220;%N&#8221;<br>\u8fd9\u6837\u4e0b\u5b8c\u4e86\u5c31\u4f1a\u81ea\u52a8\u5f00\u59cb\u4e0a\u4f20\u3002\u5982\u4e0b\u56fe <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hk.img.xxhjkl.me\/images\/2019\/05\/05\/5cceddeacce04.png\" alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u624b\u5934\u6709\u4e2ae3\u7684\u5b50\u8d26\u53f7\u3002\u67095T\u7a7a\u95f4\u4e0d\u7528\u8d77\u6765\u5f88\u96be\u53d7\uff0c\u5c31\u60f3\u4ecePT\u5f04\u70b9\u8d44\u6e90\u586b\u6ee1\u5427\u3002@Abbey\u5927\u4f6c\u5f04\u5f97\u79bb\u7ebf\u4e0b\u8f7d\u662faria2\uff0c\u8fd9\u73a9\u610f\u5bf9pt\u652f\u6301\u4e0d\u5927\u597d\uff0c\u53e6\u5916\u5c31\u662f\u5927\u4f6c\u597d\u50cf\u6ca1\u6709\u628aaria2\u6362\u6210qb\u7684\u610f\u613f\u3002\u600e\u4e48\u88c5pyone\uff0c\u8fd9\u91cc\u5c31\u4e0d\u8bf4\u4e86\uff0c\u4ee5\u540e\u6709\u7a7a\u518d\u5199\uff0c\u5047\u8bbe\u4f60 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.xxhjkl.me\/index.php?rest_route=\/wp\/v2\/posts\/528"}],"collection":[{"href":"https:\/\/www.xxhjkl.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xxhjkl.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xxhjkl.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xxhjkl.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=528"}],"version-history":[{"count":5,"href":"https:\/\/www.xxhjkl.me\/index.php?rest_route=\/wp\/v2\/posts\/528\/revisions"}],"predecessor-version":[{"id":597,"href":"https:\/\/www.xxhjkl.me\/index.php?rest_route=\/wp\/v2\/posts\/528\/revisions\/597"}],"wp:attachment":[{"href":"https:\/\/www.xxhjkl.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xxhjkl.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xxhjkl.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}