Le fichier guy-ritchies-the-covenant-2023-1080p-webrip-x265-rarbg-srt a été trouvé dans la base de données sous l'id #68450
Le fichier a télécharger 20281-1683658224.srt existe bien dans le dossier fichiers/2023/23605/
On cherche donc a rajouter le fichier 20281-1683658224.srt (qui se trouve dans le dossier fichiers/2023/23605/) en le renommant Guy.Ritchies.The.Covenant.2023.1080p.WEBRip.x265-RARBG.srt (l.237)
L'extension du fichier 20281-1683658224.srt est *.srt (l.165)
Le fichier *.zip sera stocké dans include/dl/
Le fichier *.zip a télécharger s'apppelera guy-ritchies-the-covenant-2023-1080p-webrip-x265-rarbg-(fansub)-ionoo.zip (l.212)
Le fichier 20281-1683658224.srt va être appellé Guy.Ritchies.The.Covenant.2023.1080p.WEBRip.x265-RARBG.www.subsynchro.com.srtdans le zip grâce à $zip->addFile('fichiers/2023/23605/20281-1683658224.srt', 'Guy.Ritchies.The.Covenant.2023.1080p.WEBRip.x265-RARBG.srt'); ! (l.216)
Le fichier ZiP téléchargeable s'appellera guy-ritchies-the-covenant-2023-1080p-webrip-x265-rarbg-(fansub)-ionoo.zip et sera stocké dans le dossier include/dl/ (l.225)
Nous recreons un fichier zip appellé guy-ritchies-the-covenant-2023-1080p-webrip-x265-rarbg-(fansub)-ionoo.zip dans le dossier include/dl/ (l.229)
On ajoute le fichier a-lire-subsynchro.nfo grace a addFromString (l.237)
L'image Guy.Ritchies.The.Covenant.2023.1080p.WEBRip.x265-RARBG.srt n'a bien été trouvé dans le dossier fichiers/2023/23605/ et donc a été ajouté dans le ZiP téléchargé
Nous tentons d'ajouter le fichier fichiers/2023/23605/20281-1683658224.srt (renommé Guy.Ritchies.The.Covenant.2023.1080p.WEBRip.x265-RARBG.srt) contenu dans le dossier "fichiers/2023/23605/" avec la fonction $zip->addFile('fichiers/2023/23605/fichiers/2023/23605/20281-1683658224.srt', 'Guy.Ritchies.The.Covenant.2023.1080p.WEBRip.x265-RARBG.srt') (l.245)
Aucun nFO n'est renseigné dans la base de données pour cette release donc c'est normal qu'on ne l'ajoute pas ! (l.257)
On ajoute la vignette du film grace au fichier the-covenant.jpg contenue dans le dossier img/vignettes/2023/. Le code utilisé est $zip->addFile('img/vignettes/2023/the-covenant.jpg', 'the-covenant.jpg'); (l.268)
Le fichier guy-ritchies-the-covenant-2023-1080p-webrip-x265-rarbg-(fansub)-ionoo.zip n'a pû être crée dans le dossier include/dl/et donc votre téléchargement n'a pu aboutir.