Rat's

CTList: a directory listing program that can bind multiple Tianyi Cloud disks, supporting video playback
Note: Many OneDrive and Google Drive directory listing programs have been introduced before, but the network speed is not ideal for domestic use
Scan the QR code on the right to read the full text
fourteen
2020/04

CTList: a directory listing program that can bind multiple Tianyi Cloud disks, supporting video playback

explain: Many introductions have been made before OneDrive and Google Drive Network disk directory listing program, but in domestic use, the network speed is not ideal. Recently, more and more people use the Tianyi Cloud disk. If it is used in China, the speed is very good. After all, it is supported by the telecom backbone network AWS For the actual storage node of files, the speed is basically seconds. Of course, there is no need to wait to watch the film. Here the cute guy wrote a directory listing program for the Tianyi Cloud online disk CTList , installation is also very simple, as described by the blogger OneList Almost, the entire site directory supports nPlayer Used in the player, previously through BUG Mastoid 30T And old users 10T and 2T The space can be used. For new users, the default 30G Space, but there is often the activity of delivering capacity. Here's the installation method.

screenshot

 Please enter a picture description
 Please enter a picture description

to update

 【2021.07.30】 1. Fix the problem of login failure caused by Tianyi changing the login interface. Download the file directly from github to overwrite it 【2021.06.01】 1. Adapt to kodi (WebDAV) 2. Optimize performance 【2020.05.10】 Optimize file access/download speed. Under the recommended updates that have been installed, the address of the latest version is: https://github.com/iiiiiii1/CTList  【2020.04.23】 1. Improve the mechanism of keeping cookies alive 2. Add mandatory HTML/WebDAV configuration item 3. Accelerate resource release 【2020.04.20】 Now stop sending code. Basically, all those who left a message have been sent. The project will not develop new functions for the time being. You can just leave a message about a bug. 【2020.04.19】 Repair some BUGs. The used ones can be updated and repaired 【2020.04.15】 The project is temporarily closed, and 30 codes are reissued. If the inactive or used ones are installed, they can continue to be activated.

function

  • Support multiple accounts
  • Support for displaying folder size
  • Support automatic check-in every day
  • Supports asynchronous caching
  • Support hiding specified folders and files
  • Support entire directory, single directory or single file access encryption
  • Support to display any directory and customize the root directory
  • Support read-only mount to PotPlayer ( WebDAV ), nPlayer ( WebDAV ), kodi ( WebDAV )

Application code

 Tip: After obtaining the authorization code, it can only be used with the bound account. It can be installed on any server.

CTList Apply Token Application code:

 #2020.4.14 2674253DF2154B5A00F5DF05756E7652 9D0B2F6DFA114276DD9A954E6F9948DA 6190D9FF0597748CF164899045D4E210 B2329E6485CD5B7694D0719BF958131E 65F0062A94F68E0179B244D636D89BCD 61683B9642E04DFF0B9353E2E990FF32 231676C503495F33E738C64E791064E9 A656DF714A20A0D2D5E279D16983AB33 D81B56EFA750E69A9AB5EE131F56E4F1 A5177158C8FC44FB8D177B22684954F1 A14519C669990E611F06F5239B0690D2 43A81E7BE5AD2369DA81B7B31FBB4F69 28C3EBC5CB06A6CA9F0BE2F7A42D6F4A C9E223825FD750FAD4FFEF2F5BBB603E D77462297AF7F3C333770CAFA7A99CBB 0A65F0E3C54D01502AE1D987BEA1EF89 BDC77BE0C3C504CBC6861D19654ACAF9 D87CF362094468706A7C96F4CE190862 629B180D9AA05B340EFB140B796BF4FD 60EF6F6B8FF478F06EBBA5F8D097786F 1C0A10B53D249A276C9BEDEF98E5F9A3 BFD242F9E7E2E861AAC2C7C3AFF05418 4075B20EBCBFDEBD2B7341327E4D7A95 44CD247E86EF17BFB850A1ED1F29B868 832749B873F8B3AB20271FAA9CBD108E C0FBDC73C6445660753173E4904270C7 A85895DCB7281C9A5C97B6BEC8F24525 064C591C151D8F14000E975E61FC606E 7E09D3E6C88FD1E40D75DDA0A86BDD26 8AC4C583974E70256E1B6F994947768C #New on April 15, 2020 619A60E465F6384E6E612A39E9792A02 76F3BCD10C053DE6F590E988B5794B73 3E3B5E2EBF9B7283E4D83BD6E7A22A4D E016F9D4E7151252978396750464B7A6 BFDBAFAC6555D3D684808C79EEC89CD7 5C5C8313311ECC9AA2CE2124D7BEDE08 9A5CA3744DCD93399C0208D8F080A345 D0378BA424E024D9A7E6AFEDCF072892 2482219C2DB38A28B693C83123ECD330 1650CE4BA08450B3069877D3196CA580 C697525F70C3573A3BFFC35A593C882B 4010DB574F9E8BC6FCE699F7EED69291 912185D9CC84F7D88079408A4C315B05 C20341E5B58D429D96A95E4129D5F853 ADA16FC3CC9791041187E8E3DA734D2E 56CA0807F24FC7BF005CA61E59A3E562 18EDA147D328AE8E715FDEF465216672 7B3E000B3EA890C76620CB3F749DFD07 135EE1FDE7B0478E8816CFB8A707FDED 651CFE6712CC68CAB511854E5FC96B04 E7008EEC4B54ED547C3A401B6E9ACB10 8390CFC71D159058615798F55D4D4D6D 2E7C42E0D395B7D66DEE2C6A80116BF4 4C9F2B93B501653308970BB20E556A1D 4D48D713CE4D552955905E5A4E78C7AD 4438DC2F531054A9279A1745FF582530 E154D7F9A7D5A3B493D642C394A38640 976130C15FE5D932F8FF86C0E54F671C CD0A3D8DB4079DFDF51802019D8EB95D 240EF1812AE40B5F494A4134E0F309B4 FF949E15A4BBD497C276497337266481 B79DDA22666B855CED75218526998BF9 F279A5404431D34A5320D15247ED4E32 DA56FAF28AA55EB3F2C27FE22BAC6443 0123798B2BFAF5648E76ADD6D37A8A99 EDD59DCE9717DEF0684B44AA55F3220D 25DFE5E6FD05E61EC3FDEC2596B89268 428AE41787E4E40CA81D3C9BD68A7B60 D1635D178945D06825F69DCD6FE8E521 11A8CC190EB8426E21D478FC21949AF3 #New on April 23, 2020 1D15BC7C9D1F144389A2B75FCCE8E4EE 941E7C1D8564D0B6BB38D4183EB2AAD4 3B48BBF789A9481A53C0EFC5C6E88C96 8046CF262FF4488553CE9AB6FC5A2ED7 B402B08B8386F612D7A087136F3029DF 7FD3ADFDEADEF2B184538B5244CF5096 35E86A05763C3F10A6C9D4FB9423000A 3A60EE7341E2D17E228E8D541AE19B5F 329586545FEA6221827F95EC39377CAA 6C519BA5CB4CD3F0BE5C00D9B679D329 #New on April 25, 2020 205D21D3B34F479D0F64E1F1C5DC9647 95BFADD620483E7D6BB7B8D7957E8262 587BA47676352B4F9E11925E47937782 98DFD8A200050BE7D9A8DC7BBEE1FF5E 1E0BFF9D6D598FF146475A641725C63C 4A9ACDA1F26DA156E34D7AF2CDBD3FA3 20F1F9C98A487369745DD9EDC5B8ABC0 C051441120C80489412E40C6069980B5 3DCE9DF07BFCEE09A4EE17AC35B973E1 993011668DA5D80ACD8BDCDEDABF8DD2

install

Github address: https://github.com/MoeClub/CTList

Let's just talk about it in detail Linux Usage of, Windows MacOS System binary file download address → Portal , usage and Linux All the same.

1. Apply for Tianyi account
Old users don't need to apply. New users click → Portal , select the SMS verification code to log in. Here, both Unicom and mobile phone numbers can log in and register.

2. Install CTList

 #Create and enter the CTList directory mkdir /opt/CTList && cd $_ #64 bit system download wget  https://raw.githubusercontent.com/iiiiiii1/CTList/master/exec/amd64/linux/CTList #32-bit system download wget  https://raw.githubusercontent.com/iiiiiii1/CTList/master/exec/i386/linux/CTList #Arm architecture download wget  https://raw.githubusercontent.com/iiiiiii1/CTList/master/exec/arm/linux/CTList #Give permission chmod +x CTList

3. Download Profile

 #Download Profile wget  https://raw.githubusercontent.com/iiiiiii1/CTList/master/config.json #Download the default theme file wget  https://raw.githubusercontent.com/iiiiiii1/CTList/master/index.html

Available here two You can browse pictures, watch videos and other theme files online → Portal , download directly index.html File, just overwrite it.

4. Edit Profile
Edit Profile config.json , roughly described as follows:

 [ { "Enable": 1, # 0: Close, 1: Open "UserName": "", # login user name of Tianyi Cloud online disk, @ 189.cn is not required "Password": "", # Tianyi Cloud Disk Login Password "CaptchaMode": "0", # verification code 0: Reject login when encountering verification code, 1: Enter verification manually, others: API of automatic identification verification code "ViewMode": 0, # display mode 0: Automatic recognition 1: Use web mode only 2: Only use WebDAV mode "RefreshToken": "", # Tianyi online disk session Keep the default value. If an exception occurs, clear the value "SubPath": "/CTList", # Specifies that an account is attached to a directory on the website. Each directory value must be unique when there are multiple accounts "RootPathId": "- 11", # Set the ID of the directory displaying the Tianyi web disk, and the root directory is - 11 "HideItemId": "0 | - 16", # Do not display a directory or file, fill in its ID Each item is separated by "|" "AuthItemId": "", # Encrypt a directory or file "<ID of file or directory>?<Encryption mode>?<User name>:<Password>" "RefreshURL": 189, # Number of seconds to download the direct link cache If timeout occurs, it will be updated passively "RefreshInterval": 1800 # Refresh the directory structure. If it is not updated frequently, it is recommended to set a longer time } ]

If there is no special requirement, just fill in the account password, and CaptchaMode Later zero Change to https://api.moeclub.org/SampleCode It is used to identify the login verification code. If the configuration file has been modified during use, it needs to be restarted CTList

5. Raise limits
Adjust here limits linux An error may occur under high concurrency. Use the command:

 [ -f /etc/security/limits.conf ] && LIMIT='262144' && sed -i '/^\(\*\|root\)[[:space:]]*\(hard\|soft\)[[:space:]]*\(nofile\|memlock\)/d' /etc/security/limits.conf && echo -ne "*\thard\tmemlock\t${LIMIT}\n*\tsoft\tmemlock\t${LIMIT}\nroot\thard\tmemlock\t${LIMIT}\nroot\tsoft\tmemlock\t${LIMIT}\n*\thard\tnofile\t${LIMIT}\n*\tsoft\tnofile\t${LIMIT} \nroot\thard\tnofile\t${LIMIT}\nroot\tsoft\tnofile\t${LIMIT}\n\n" >>/etc/security/limits.conf

windows No adjustment is required under the system.

6. Start CTList
The startup here has changed to the authorization mode. You need to apply for a code to obtain the authorization code, and obtain the authorization code → Portal Apply Token And user name, i.e. mobile phone number, are required, and one application code can only be bound to one Tianyi Cloud account. Binding multiple accounts requires binding other accounts to the same authorization code.

 #Tips for using application code [Success]: Binding succeeded [Query Mode]: query mode, query authorization code The application code has been used If there is no valid authorized user, an error will appear when running the program! No Valid User.

Here, if you want to support the Cute Guy, you can go to the Cute Guy grocery store → Portal , Select Donation # 11 OK.

Start after obtaining the authorization code CTList

 #Direct operation /opt/CTList/CTList -a "AUTH_TOKEN" -bind 0.0.0.0 -port 8000 #Background operation /opt/CTList/CTList -a "AUTH_TOKEN" -bind 0.0.0.0 -port 8000 -d

AUTH_TOKEN To obtain the authorization code, eight thousand To access the port, modify it before running.

After starting, you can use ip:8000/CTList Visited the program, followed by SubPath The parameter path can be modified by yourself.

If you can't access the program, you may want to check the firewall port. If there is a security group, you should also release the relevant port.

Here are CentOS System firewall opening command, such as opening eight thousand Ports, roughly as follows:

 #CentOS 6 iptables -I INPUT -p tcp --dport 8000 -j ACCEPT service iptables save service iptables restart #CentOS 7 firewall-cmd --zone=public --add-port=8000/tcp --permanent firewall-cmd --reload

7. Start automatically
Here is a new simple systemd Configuration file, applicable CentOS 7 Debian 8+ Ubuntu 16+

Use the command:

 #Set your running listening port, that is, you can access the program through the ip: port. The default here is 8000. port="8000" #Set your authorization code and modify it yourself AUTH_TOKEN="xxxxxxx" #Copy the following code to SSH to run cat > /etc/systemd/system/ctlist.service <<EOF [Unit] Description=ctlist After=network.target [Service] Type=simple ExecStart=/opt/CTList/CTList -a ${AUTH_TOKEN} -bind 0.0.0.0 -port ${port} -l Restart=on-failure [Install] WantedBy=multi-user.target EOF #Start and set the automatic startup systemctl start ctlist systemctl enable ctlist

Related commands:

 Start: systemctl start ctlist Stop: systemctl stop ctlist Restart: systemctl restart ctlist View status: systemctl status ctlist

Bind domain name

 Tip: If you have a pagoda panel, you can use the pagoda directly. If you don't have a pagoda panel, you can use caddy. Choose one from two.

Pagoda panel

First enter the pagoda panel, then click the website on the left, add a site, and then click the added domain name. At this time, you will enter the site configuration, click the reverse proxy URL fill http://127.0.0.1:8000 , do not set cache, and then enable reverse proxy.

If you want to enable SSL Before setting the reverse proxy, you need to click the SSL , apply for free let Certificate, and then enable reverse generation.

Caddy binding

install Caddy

 wget -N --no-check-certificate  https://raw.githubusercontent.com/iiiiiii1/doubi/master/caddy_install.sh  && chmod +x caddy_install.sh && bash caddy_install.sh #Alternate address wget -N --no-check-certificate  https://www.moerats.com/usr/shell/Caddy/caddy_install.sh  && chmod +x caddy_install.sh && bash caddy_install.sh

to configure Caddy

 #The following is a whole. Please modify the domain name and copy it to SSH to run! #Http access. This configuration does not automatically issue SSL echo "www.moerats.com { gzip tls  admin@moerats.com proxy / 127.0.0.1:8000 }" > /usr/local/caddy/Caddyfile #Https access. This configuration will automatically issue SSL. Please resolve the domain name to the VPS server in advance echo "www.moerats.com { gzip tls  admin@moerats.com proxy / 127.0.0.1:8000 }" > /usr/local/caddy/Caddyfile

start-up Caddy

 /etc/init.d/caddy start

You can open the domain name for access.

uninstall

 #Automatic startup is not set rm -rf /opt/CTList #Set automatic startup after startup systemctl stop ctlist systemctl disable ctlist rm -rf /opt/CTList /etc/systemd/system/ctlist.service

Multi account configuration

 [ { "Enable": 1, # 0: Close, 1: Open "UserName": "", # login user name of Tianyi Cloud online disk, @ 189.cn is not required "Password": "", # Tianyi Cloud Disk Login Password "CaptchaMode": "0", # verification code 0: Reject login when encountering verification code, 1: Enter verification manually, others: API of automatic identification verification code "ViewMode": 0, # display mode 0: Automatic recognition 1: Use web mode only 2: Only use WebDAV mode "RefreshToken": "", # Tianyi online disk session Keep the default value. If an exception occurs, clear the value "SubPath": "/CTList", # Specifies that an account is attached to a directory on the website. Each directory value must be unique when there are multiple accounts "RootPathId": "- 11", # Set the ID of the directory displaying the Tianyi web disk, and the root directory is - 11 "HideItemId": "0 | - 16", # Do not display a directory or file, fill in its ID Each item is separated by "|" "AuthItemId": "", # Encrypt a directory or file "<ID of file or directory>?<Encryption mode>?<User name>:<Password>" "RefreshURL": 189, # Number of seconds to download the direct link cache If timeout occurs, it will be updated passively "RefreshInterval": 1800 # Refresh the directory structure. If it is not updated frequently, it is recommended to set a longer time }, { "Enable": 1, # 0: Close, 1: Open "UserName": "", # login user name of Tianyi Cloud online disk, @ 189.cn is not required "Password": "", # Tianyi Cloud Disk Login Password "CaptchaMode": "0", # verification code 0: Reject login when encountering verification code, 1: Enter verification manually, others: API of automatic identification verification code "ViewMode": 0, # display mode 0: Automatic recognition 1: Use web mode only 2: Only use WebDAV mode "RefreshToken": "", # Tianyi online disk session Keep the default value. If an exception occurs, clear the value "SubPath": "/CTList", # Specifies that an account is attached to a directory on the website. Each directory value must be unique when there are multiple accounts "RootPathId": "- 11", # Set the ID of the directory displaying the Tianyi web disk, and the root directory is - 11 "HideItemId": "0 | - 16", # Do not display a directory or file, fill in its ID Each item is separated by "|" "AuthItemId": "", # Encrypt a directory or file "<ID of file or directory>?<Encryption mode>?<User name>:<Password>" "RefreshURL": 189, # Number of seconds to download the direct link cache If timeout occurs, it will be updated passively "RefreshInterval": 1800 # Refresh the directory structure. If it is not updated frequently, it is recommended to set a longer time } ]

The above is two Account configuration, note SubPath Not the same, if three Accounts, directly in [] Add the configuration file code once. Note that English commas are used in the middle , distinguish.

Use questions

1. Access address
According to the SubPath The parameters in the item access the specific network disk. Generally SubPath The specific value of is displayed in brackets in the terminal.

 For example: SubPath:/CTList visit: http://127.0.0.1:5189/CTList For example: SubPath:/ visit: http://127.0.0.1:5189/

2. Find Directory ID
be used for RootPathId HideItemId AuthItemId Configuration item, login https://cloud.189.cn , enter the directory to be operated, and check that the last number in the address bar is the directory ID

file ID Browser required F12 View request items.

 RootPathId: the folder ID of the Tianyi web disk corresponding to the root directory displayed in the list, and the root directory ID of the Tianyi web disk is - 11 HideItemId: hide the files or folders in the Tianyi online disk in the display directory, fill in their IDs, and separate them with "|" AuthItemId: Encrypt the files or folders in the Tianyi online disk in the display directory, separated by "|"

3. Encrypt directory
AuthItemId Configuration item adopts HTTP 401 Authentication mode encryption.

 #Single writing "AuthItemId": "-11?0?UserName:Password" #Multiple writing methods "AuthItemId": "-11?0?UserName:Password|-16?1?UserName:Password" #Field resolution <File or directory ID>< Encryption mode>< User name>:<Password> #Encryption mode. Selecting 0 and 1 for encrypted files has the same effect 0: Only this layer of folder is encrypted. You can directly access the contents of this layer of folder 1: Encrypt all sub items of this folder

4. Refresh Policy

 #The four refresh logics are completely asynchronous and do not affect each other Token: 60 * 60 * 10 Cookies (session authorization): 60 * 30 RefreshURL (real download link): 189 (the configuration file can be changed to<RefreshURL>) RefreshInterval (refresh directory structure): 60 * 15 (the configuration file can be modified, and the global minimum value takes effect<RefreshInterval>)

5. Instructions

 Usage of CTList: -bind string Bind Address (default "127.0.0.1") -port string Port (default "5189") -a string Auth Token. -c string Config file.  (default "config.json") -t string Index file.  (default "index.html") -json Output json. -d Run in the background. -l Less output.

6. Directory Access
SubPath Configuration item, controlling directory access

 #When there are multiple accounts, ensure that the SubPath item is unique When SubPath is configured as empty ("") or single diagonal bar ("/") Access path is http://0.0.0.0 When SubPath is configured as a specific field ("/CTList"), "/CTList" can be modified to your favorite field Access path is http://0.0.0.0/CTList

7. Use in nPlayer Player

 #Network -->Add -->WebDAV #Host: fill in the domain name #Path: fill in SubPath value E.g./CTList #Please fill in others according to the situation #Advantages: You can play videos of various encoding formats in the player #You can appropriately reduce the minimum cache time to improve the browsing experience

8. Error related

 400 (Not Found URL): The link to the file could not be found 404 (Not Found): The initial cache directory structure is not completed or the file path is incorrect 422 (Not Found Real URL): Failed to generate a real file download link (usually the file is reported and cannot be downloaded) 5XX: It's usually a server problem Some possible situations are: the main program is not open, the port is blocked, and the reverse configuration is incorrect

Last Tianyi Cloud Disk APP Will often do activities, give space capacity and members, you can download app Get some benefits, which are listed here two Activities:

 #Get a three-month free gold member https://m.cloud.189.cn/zhuanti/2020/share-vip/web.html #Get one year's gold membership for free, and pass the picture around https://m.cloud.189.cn/zhuanti/2020/teacher-vip/web.html #Get free family cloud 1T space https://m.cloud.189.cn/zhuanti/2019/1t-v2/web.html

At last, the program is enough to build a download station, and if there is more space, you can also click on movies to see.

Vultr New user registration send one hundred USD/ sixteen Each computer room is charged by hour, and Alipay is supported【 Click to view 】。
Last modification: July 30, 2021 01:06 PM

Comment

2831 comments

  1. Operation and maintenance learning notes

    Is there a traffic limit?

  2. etyr

    Just pass the picture around

  3. itolallen

    "Error! No Valid User." This is always the error. Is the code expired

    1. Rat's
      @itolallen

      It has been abandoned and changed to a new one, https://www.moerats.com/archives/1034/

  4. freemen

    When will the Big Brother rebuild... Look forward to the stars and the moon..

    1. auney
      @Carefree guest

      Expect together

  5. auney

    See if the boss has updated. I'm looking forward to it

  6. John

    It hasn't been updated for a long time.

  7. oiu

    It's been a long time. Why hasn't it been updated? I hope it can be updated earlier.

    1. Rat's
      @oiu

      Update the new version in the next 2 days

  8. Xiaofei

    How to apply for a friend chain?

  9. blues

    Is this program still working

    1. Rat's
      @Blues

      No, use the new version now

  10. Moe sauce is handsome

    Come to learn and get the activation code online ❤️