瀏覽代碼

Update 'README.md'

Yeung Alan 5 年之前
父節點
當前提交
303759127b
共有 1 個文件被更改,包括 14 次插入1 次删除
  1. 14 1
      README.md

+ 14 - 1
README.md

@@ -1,4 +1,17 @@
 # Please refer to the aCloud project read me
 # aCloudプロジェクトを参照してください
 # 請參閱aCloud讀我檔案
-# 请参阅aCloud读我档案
+# 请参阅aCloud读我档案
+
+### For those who want to add the movie information support, please add this code at the last row of ``` <script> ``` 
+```
+	$.get( "https://api.themoviedb.org/3/search/movie?api_key=3067fe560558c32de0d0b8607553b16d&language=en-US&query=" + $("#videoName").text() +"&page=1&include_adult=false", function( data ) {
+		$.get( "https://api.themoviedb.org/3/movie/" + data["results"][0]["id"] + "?api_key=3067fe560558c32de0d0b8607553b16d&language=en-US", function( info ) {
+			console.log(data);
+			$("#videoName").after("<p>Overview: " + info["overview"] + "</p>");
+			$("#videoName").after("<p>Release: " + info["release_date"] + "</p>");
+			$("#videoName").after("<p>Production Companies: " + info["production_companies"][0]["name"] + "</p>");
+			
+		});
+	});
+```