mirror of
				https://github.com/karl0ss/JDRssDownloader.git
				synced 2025-10-30 22:23:59 +00:00 
			
		
		
		
	json stuff
This commit is contained in:
		
							parent
							
								
									25ed5af433
								
							
						
					
					
						commit
						5c50428af0
					
				
							
								
								
									
										52
									
								
								config.schema
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								config.schema
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,52 @@ | ||||
| { | ||||
|   "$schema": "http://json-schema.org/draft-04/schema#", | ||||
|   "type": "object", | ||||
|   "properties": { | ||||
|     "JDUserName": { | ||||
|       "type": "string" | ||||
|     }, | ||||
|     "JDPassword": { | ||||
|       "type": "string" | ||||
|     }, | ||||
|     "RSSFeed": { | ||||
|       "type": "string" | ||||
|     }, | ||||
|     "RSSFeedRefreshMins": { | ||||
|       "type": "number" | ||||
|     }, | ||||
|     "JDPostLinksMins": { | ||||
|       "type": "number" | ||||
|     }, | ||||
|     "Autostart": { | ||||
|       "type": "boolean" | ||||
|     }, | ||||
|     "OnlyHEVC": { | ||||
|       "type": "boolean" | ||||
|     }, | ||||
|     "Shows": { | ||||
|  "type": "array", | ||||
|   "items": { | ||||
|     "type": "object", | ||||
|     "properties": { | ||||
|       "Name": { | ||||
|         "type": "string" | ||||
|       }, | ||||
|       "Quality": { | ||||
|         "type": "string" | ||||
|       } | ||||
|     }, | ||||
|     "required": ["Name", "Quality"] | ||||
|   } | ||||
|     } | ||||
|   }, | ||||
|   "required": [ | ||||
|     "JDUserName", | ||||
|     "JDPassword", | ||||
|     "RSSFeed", | ||||
|     "RSSFeedRefreshMins", | ||||
|     "JDPostLinksMins", | ||||
|     "Autostart", | ||||
|     "OnlyHEVC", | ||||
|     "Shows" | ||||
|   ] | ||||
| } | ||||
							
								
								
									
										77
									
								
								index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										77
									
								
								index.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,77 @@ | ||||
| <!DOCTYPE HTML> | ||||
| <html lang="en"> | ||||
| <head> | ||||
|     <!-- when using the mode "code", it's important to specify charset utf-8 --> | ||||
|     <meta charset="utf-8"> | ||||
| 
 | ||||
|     <link href="https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/9.9.0/jsoneditor.min.css" rel="stylesheet" type="text/css"> | ||||
|     <script src="https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/9.9.0/jsoneditor.min.js"></script> | ||||
| </head> | ||||
| <body> | ||||
|     <div id="jsoneditor" style="width: 400px; height: 400px;"></div> | ||||
| 
 | ||||
|     <script> | ||||
|         // create the editor | ||||
|         const container = document.getElementById("jsoneditor") | ||||
|         const options = {} | ||||
|         const editor = new JSONEditor(container, options) | ||||
| 
 | ||||
|         // set json | ||||
|         const initialJson = { | ||||
|             "JDUserName": "karl@k-world.me.uk", | ||||
|             "JDPassword": "Grd.555269", | ||||
|             "RSSFeed": "https://rlsbb.cc/feed/", | ||||
|             "RSSFeedRefreshMins": 0.2, | ||||
|             "JDPostLinksMins": 0.3, | ||||
|             "Autostart": true, | ||||
|             "OnlyHEVC": true, | ||||
|             "Shows": [ | ||||
|                 { | ||||
|                     "Name": "Critter Fixers Country Vets", | ||||
|                     "Quality": "720" | ||||
|                 }, | ||||
|                 { | ||||
|                     "Name": "The Challenge", | ||||
|                     "Quality": "720" | ||||
|                 }, | ||||
|                 { | ||||
|                     "Name": "Obi-Wan Kenobi", | ||||
|                     "Quality": "1080" | ||||
|                 }, | ||||
|                 { | ||||
|                     "Name": "Taskmaster", | ||||
|                     "Quality": "720" | ||||
|                 }, | ||||
|                 { | ||||
|                     "Name": "Ms Marvel", | ||||
|                     "Quality": "720" | ||||
|                 }, | ||||
|                 { | ||||
|                     "Name": "Star Trek Strange New Worlds", | ||||
|                     "Quality": "720" | ||||
|                 }, | ||||
|                 { | ||||
|                     "Name": "The Flash 2014", | ||||
|                     "Quality": "720" | ||||
|                 }, | ||||
|                 { | ||||
|                     "Name": "Gold Rush", | ||||
|                     "Quality": "720" | ||||
|                 }, | ||||
|                 { | ||||
|                     "Name": "Hoffman Family Gold", | ||||
|                     "Quality": "720" | ||||
|                 }, | ||||
|                 { | ||||
|                     "Name": "Love Island", | ||||
|                     "Quality": "720" | ||||
|                 } | ||||
|             ] | ||||
|         } | ||||
|         editor.set(initialJson) | ||||
| 
 | ||||
|         // get json | ||||
|         const updatedJson = editor.get() | ||||
|     </script> | ||||
| </body> | ||||
| </html> | ||||
| @ -13,6 +13,7 @@ | ||||
|     "axios": "^0.27.2", | ||||
|     "cheerio": "^1.0.0-rc.11", | ||||
|     "jdownloader-client": "^1.0.0", | ||||
|     "jsoneditor": "^9.9.0", | ||||
|     "lodash": "^4.17.21", | ||||
|     "rss-parser": "^3.12.0", | ||||
|     "simple-node-logger": "^21.8.12" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 karl.hudgell
						karl.hudgell