Changeset 2416440
- Timestamp:
- 11/11/2020 08:50:31 AM (5 years ago)
- Location:
- wsm-downloader/trunk
- Files:
-
- 3 edited
-
dl_engine/instagram/decoder.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
wsm_downloader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wsm-downloader/trunk/dl_engine/instagram/decoder.php
r2352216 r2416440 32 32 $post_page[0] = $parsed_json; 33 33 } 34 35 if($post_page[0] == ''){ 36 $data = wsmd_file_get_content($url); 37 $json_file = $this->get_string_between($data, "window._sharedData =", ';</script>'); 38 $parsed_json = json_decode($json_file); 39 $post_page1 = $parsed_json->entry_data->PostPage; 40 $post_page[0] = $post_page1[0]->graphql; 41 } 34 42 35 43 … … 80 88 } 81 89 82 if(empty($msg['photo'][1]) and strpos($data , 'srcset') !== false){ 90 if(empty($msg['photo'][1]) and $msg['success'] == false){ 91 $data = wsmd_file_get_content($url.'/embed/'); 83 92 $first_extract = $this->get_string_between(str_replace('&' , '&' , $data) , '<img class="EmbeddedMediaImage"' , '/>'); 84 93 $second = $this->get_string_between($first_extract , 'srcset="' , '"'); 85 94 $exloded = explode("," , $second); 95 $msg['success'] = true; 86 96 foreach($exloded as $explod1){ 87 97 $extract = explode(' ' , $explod1); 88 98 $msg['photo'][] = ['direct_url' => $extract[0], 'feu_url' => $extract[0], 'type' => 'jpg' , 'quality' => $extract[1], 'size' => wsmd_get_file_size($extract[0]), ]; 99 $msg['thumnail_src'] =$extract[0]; 89 100 } 90 101 -
wsm-downloader/trunk/readme.txt
r2406143 r2416440 155 155 Facebook downloader issue has been solved 156 156 157 =1.4.0= 158 Instagram downloader issue has been solved 159 157 160 158 161 -
wsm-downloader/trunk/wsm_downloader.php
r2406143 r2416440 5 5 * Author: S.J.Hossseini 6 6 * Author URI: https://t.me/ttmga 7 * Version: 1. 3.07 * Version: 1.4.0 8 8 * Text Domain: wsm-downloader 9 9 * Domain Path: /languages … … 16 16 define('WSMD_PLUGIN_FILE', plugin_dir_path(__FILE__)); 17 17 define('WSMD_PLUGIN_URL', plugins_url('', __FILE__)); 18 define('WSMD_SCRIPT_VERSION', '1. 3.0');18 define('WSMD_SCRIPT_VERSION', '1.4.0'); 19 19 } 20 20
Note: See TracChangeset
for help on using the changeset viewer.