{"id":457787,"date":"2021-04-25T23:52:31","date_gmt":"2021-04-25T15:52:31","guid":{"rendered":"http:\/\/4563.org\/?p=457787"},"modified":"2021-04-25T23:52:31","modified_gmt":"2021-04-25T15:52:31","slug":"%e4%b8%80%e4%b8%aa%e7%ae%80%e5%8d%95%e7%9a%84onedrive%e4%b8%8a%e4%bc%a0%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=457787","title":{"rendered":"\u4e00\u4e2a\u7b80\u5355\u7684OneDrive\u4e0a\u4f20\u5de5\u5177"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u9ad8\u73a9\u6881<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-4-2 20:27:53\t<\/p>\n<h3>\u4e00\u4e2a\u7b80\u5355\u7684OneDrive\u4e0a\u4f20\u5de5\u5177<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u9ad8\u73a9\u6881 \u4e8e 2021-4-2 20:50 \u7f16\u8f91 <\/p>\n<p> OneDrive\u7684\u5217\u8868\u7a0b\u5e8f\u5df2\u7ecf\u5f88\u591a\u4e86\uff0c\u4f46\u662fOneDrive\u7684\u4e0a\u4f20\u7684\u7a0b\u5e8f\u51fa\u540d\u7684\u5c31rclone\u4e00\u4e2a\uff0crclone\u786e\u5b9e\u662f\u633a\u597d\uff0c\u4f46\u662f\u6709\u7684\u65f6\u5019\u4e5f\u4f1a\u51fa\u73b0bug\uff0c\u6bd4\u5982\u4f1a\u7a81\u7136\u6302\u8f7d\u5931\u6548\u4e4b\u7c7b\u7684\u95ee\u9898\uff0c\u540c\u65f6\u914d\u7f6e\u8d77\u6765\u6709\u4e00\u70b9\u70b9\u9ebb\u70e6\u3002<br \/>  \u5bf9\u4e8e\u5355\u6587\u4ef6\u5373\u53ef\u8fd0\u884c\u7684\u7684OneDrive\u4e0a\u4f20\u5de5\u5177\uff0c\u840c\u5496\u5927\u4f6c\u5199\u4e86\u4e00\u4e2a\u975e\u5e38\u597d\u7684\u7248\u672c https:\/\/github.com\/MoeClub\/OneList\/tree\/master\/OneDriveUploader\uff0c\u53ef\u60dc\u5e76\u6ca1\u6709\u5f00\u6e90\uff0c\u5b89\u5168\u6027\u4e0d\u80fd\u4fdd\u8bc1\uff0c\u800c\u4e14\u5df2\u7ecf\u597d\u4e45\u90fd\u6ca1\u6709\u66f4\u65b0\u4e86\u3002<\/p>\n<p>  \u4e8e\u662f\u6211\u5c31\u4ece\u6211\u5f53\u521d\u5199\u7684DownloadBot\u91cc\u628a\u91cc\u9762\u7684OneDrive\u7684\u4e0a\u4f20\u7a0b\u5e8f\u72ec\u7acb\u51fa\u6765\uff0c\u641e\u51fa\u4e86\u8fd9\u4e2aOneDrive\u4e0a\u4f20\u5de5\u5177<\/p>\n<p>  https:\/\/github.com\/gaowanliang\/OneDriveUploader<\/p>\n<p>  \u52a0\u4e86\u5b9e\u65f6\u7684\u4e0a\u4f20\u901f\u5ea6\u663e\u793a\uff0c\u540c\u65f6\u652f\u6301Telegram\u5b9e\u65f6\u76d1\u63a7\u4e0a\u4f20\uff0c\u5728\u540e\u53f0\u4e0a\u4f20\u6216\u8005\u662f\u901a\u8fc7\u81ea\u52a8\u5316\u811a\u672c\u4e0a\u4f20\u7684\u65f6\u5019\u53ef\u4ee5\u76f4\u63a5\u4e0d\u7528\u6253\u5f00\u63a7\u5236\u53f0\u5c31\u53ef\u4ee5\u67e5\u770b\u4e0a\u4f20\u8fdb\u5ea6\u3002\u540c\u65f6\u652f\u6301Aria2\u7684\u81ea\u52a8\u5316\u811a\u672c\u4e0a\u4f20\uff0c\u4ee3\u7801\u5982\u4e0b<\/p>\n<p>  #!\/bin\/bash<\/p>\n<p>  GID=&quot;$1&quot;;<br \/>  FileNum=&quot;$2&quot;;<br \/>  File=&quot;$3&quot;;<br \/>  MaxSize=&quot;15728640000&quot;;<br \/>  Thread=&quot;3&quot;;#\u9ed8\u8ba43\u7ebf\u7a0b\uff0c\u81ea\u884c\u4fee\u6539\uff0c\u670d\u52a1\u5668\u914d\u7f6e\u4e0d\u597d\u7684\u8bdd\uff0c\u4e0d\u5efa\u8bae\u592a\u591a<br \/>  Block=&quot;20&quot;;#\u9ed8\u8ba4\u5206\u575720m\uff0c\u81ea\u884c\u4fee\u6539<br \/>  RemoteDIR=&quot;&quot;;#\u4e0a\u4f20\u5230Onedrive\u7684\u8def\u5f84\uff0c\u9ed8\u8ba4\u4e3a\u6839\u76ee\u5f55\uff0c\u5982\u679c\u8981\u4e0a\u4f20\u5230MOERATS\u76ee\u5f55\uff0c&quot;&quot;\u91cc\u9762\u8bf7\u586b\u6210MOERATS<br \/>  LocalDIR=&quot;\/root\/Download\/&quot;;#Aria2\u4e0b\u8f7d\u76ee\u5f55\uff0c\u8bb0\u5f97\u6700\u540e\u9762\u52a0\u4e0a\/<br \/>  Uploader=&quot;\/usr\/local\/bin\/OneDriveUploader&quot;;#\u4e0a\u4f20\u7684\u7a0b\u5e8f\u5b8c\u6574\u8def\u5f84\uff0c\u9ed8\u8ba4\u4e3a\u672c\u6587\u5b89\u88c5\u7684\u76ee\u5f55<br \/>  Config=&quot;\/root\/.aria2\/auth.json&quot;;#\u521d\u59cb\u5316\u751f\u6210\u7684\u914d\u7f6eauth.json\u7edd\u5bf9\u8def\u5f84<br \/>  path=&quot;$3&quot; #\u53d6\u539f\u59cb\u8def\u5f84\uff0c\u6211\u7684\u73af\u5883\u4e0b\u5982\u679c\u662f\u5355\u6587\u4ef6\u5219\u4e3a\/data\/demo.png,\u5982\u679c\u662f\u6587\u4ef6\u5939\u5219\u8be5\u503c\u4e3a\u6587\u4ef6\u5939\u5185\u67d0\u4e2a\u6587\u4ef6\u6bd4\u5982\/data\/a\/b\/c\/d.jpg<br \/>  downloadpath=&#8217;\/root\/Download&#8217; #\u4e0b\u8f7d\u76ee\u5f55<\/p>\n<p>  find $downloadpath -name &#8216;*.aria2&#8217; -type f -print -exec rm -rf {} ;<\/p>\n<p>  if [[ -z $(echo &quot;$FileNum&quot; |grep -o &#8216;*&#8217; |head -n1) ]]; then FileNum=&#8217;0&#8242;; fi<br \/>  if [[ &quot;$FileNum&quot; -le &#8216;0&#8217; ]]; then exit 0; fi<br \/>  if [[ &quot;$#&quot; != &#8216;3&#8217; ]]; then exit 0; fi<\/p>\n<p>  function LoadFile(){<br \/>  if [[ ! -e &quot;${Uploader}&quot; ]]; then return; fi<br \/>  IFS_BAK=$IFS<br \/>  IFS=<\/p>\n<p>  \u8be6\u60c5\u5927\u5bb6\u53ef\u4ee5\u70b9\u8fdb\u53bb\u67e5\u770b\uff0c\u5927\u5bb6\u53ef\u4ee5\u627e\u627ebug\uff0c\u540c\u65f6\u4e0d\u59a8\u70b9\u4e2astar\u652f\u6301\u4e00\u4e0bn&#8217;<br \/>  tmpFile=&quot;$(echo &quot;${File\/#$LocalDIR}&quot; |cut -f1 -d&#8217;\/&#8217;)&quot;<br \/>  FileLoad=&quot;${LocalDIR}${tmpFile}&quot;<br \/>  if [[ ! -e &quot;${FileLoad}&quot; ]]; then return; fi<br \/>  ItemSize=$(du -s &quot;${FileLoad}&quot; |cut -f1 |grep -o &#8216;*&#8217; |head -n1)<br \/>  if [[ -z &quot;$ItemSize&quot; ]]; then return; fi<br \/>  if [[ &quot;$ItemSize&quot; -ge &quot;$MaxSize&quot; ]]; then<br \/>  &nbsp; &nbsp; echo -ne &quot;\u000033[33m${FileLoad} \u000033[0mtoo large to spik.n&quot;;<br \/>  &nbsp; &nbsp; return;<br \/>  fi<br \/>  ${Uploader} -c &quot;${Config}&quot; -t &quot;${Thread}&quot; -b &quot;${Block}&quot; -f &quot;${FileLoad}&quot; #\u8fd9\u91cc\u53ef\u4ee5\u52a0\u4e0a\u4f60\u7684Telegram Bot\uff0c\u5c31\u53ef\u4ee5\u4e0a\u4f20\u7684\u65f6\u5019\u5b9e\u65f6\u76d1\u63a7\uff0c\u5177\u4f53\u5199\u6cd5\u53c2\u8003readme<\/p>\n<p>  done<br \/>  rm -rf $downloadpath+&quot;\/*&quot; #\u52a0\u8fd9\u4e00\u53e5\u4f1a\u6e05\u7a7a\u4e0b\u8f7d\u6587\u4ef6\u5939<br \/>  }<br \/>  LoadFile;<\/p>\n<p>  \u8be6\u60c5\u5927\u5bb6\u53ef\u4ee5\u70b9\u8fdb\u53bb\u67e5\u770b\uff0c\u5927\u5bb6\u53ef\u4ee5\u627e\u627ebug\uff0c\u540c\u65f6\u4e0d\u59a8\u70b9\u4e2astar\u652f\u6301\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>micto<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-4-2 22:54:34\t<\/p>\n<h3><\/h3>\n<p>  \t\tyc007t \u4f60\u7684\u8bf4\u660e\u91cc\uff0c\u6709\u5f88\u591a\u6587\u5b57\uff0c\u52a0\u4e86\u5220\u9664\u7ebf\uff0c\u662f\u6307\u4e0d\u652f\u6301\u561b\uff1f<\/p>\n<p>  \u8b6c\u5982\uff1a\u652f\u6301 \u56fd\u9645\u7248, \u4e2a\u4eba\u7248(\u5bb6\u5ead\u7248), \u4e2d\u56fd\u7248(\u4e16\u7eaa\u4e92\u8054).\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>nkym<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-4-2 20:31:17\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u63d0\u5347\u5728\u54ea\u91cc\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u830e\u809b\u4e92\u64b8\u5a03<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-4-2 20:32:25\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u521a\u521a\u7528a1\u6574\u4e86\u4e2aod5T\uff0c\u6700\u8fd1\u60f3\u4e0a\u624b\uff0c\u697c\u732a\u53d1\u7684\u6b63\u662f\u65f6\u5019\uff0c\u7231\u4f60yc019t\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u9ad8\u73a9\u6881<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-4-2 20:36:02\t<\/p>\n<h3><\/h3>\n<p>  \t\tnkym \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-4-2 20:31<br \/>  \u63d0\u5347\u5728\u54ea\u91cc\uff1f<\/p>\n<p> \u52a0\u4e86\u5b9e\u65f6\u7684\u4e0a\u4f20\u901f\u5ea6\u663e\u793a\uff0c\u540c\u65f6\u652f\u6301Telegram\u5b9e\u65f6\u76d1\u63a7\u4e0a\u4f20\uff0c\u5728\u540e\u53f0\u4e0a\u4f20\u6216\u8005\u662f\u901a\u8fc7\u81ea\u52a8\u5316\u811a\u672c\u4e0a\u4f20\u7684\u65f6\u5019\u53ef\u4ee5\u76f4\u63a5\u4e0d\u7528\u6253\u5f00\u63a7\u5236\u53f0\u5c31\u53ef\u4ee5\u67e5\u770b\u4e0a\u4f20\u8fdb\u5ea6\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>jxpal<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-4-2 20:38:00\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u524d\u6392\u652f\u6301\u4e00\u4e0b\u5927\u4f6c<br \/>  \u521a\u597d\u6700\u8fd1\u7f3a\u4e2aod\u7684\u540c\u6b65\u5de5\u5177\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>admin2<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-4-2 20:39:14\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6ecb\u78c1\u6ecb\u78c1\uff0c\u611f\u8c22\u697c\u4e3b\u5206\u4eab\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u63a9\u8033\u76d7\u94c3<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-4-2 20:47:23\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u597d\u4e1c\u897f\uff0c\u8c22\u8c22\u5148\u6536\u85cfhttps:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-master\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Goood<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-4-2 20:48:08\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8c22\u8c22\u5206\u4eab\uff0c\u8bd5\u8bd5\u770b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>reizhi<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-4-2 20:48:27\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u597d\uff0c\u884c\uff0c\u53ef\u4ee5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>dakai<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-4-2 20:55:06\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8c22\u8c22\u5206\u4eab\uff0c\u8bd5\u8bd5\u770b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9ad8\u73a9\u6881 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/457787"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=457787"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/457787\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=457787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=457787"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=457787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}