Plugin Directory

Changeset 2416440


Ignore:
Timestamp:
11/11/2020 08:50:31 AM (5 years ago)
Author:
sjhoo
Message:

instagram downloader issue has been solved

Location:
wsm-downloader/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wsm-downloader/trunk/dl_engine/instagram/decoder.php

    r2352216 r2416440  
    3232        $post_page[0] = $parsed_json;           
    3333        }
     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        }       
    3442           
    3543               
     
    8088       }
    8189       
    82 if(empty($msg['photo'][1]) and strpos($data , 'srcset') !== false){   
     90if(empty($msg['photo'][1]) and $msg['success'] == false){
     91$data = wsmd_file_get_content($url.'/embed/');   
    8392$first_extract = $this->get_string_between(str_replace('&amp;' , '&' , $data) , '<img class="EmbeddedMediaImage"' , '/>');
    8493$second = $this->get_string_between($first_extract , 'srcset="' , '"');
    8594$exloded = explode("," , $second);
     95$msg['success'] = true;
    8696foreach($exloded as $explod1){
    8797    $extract = explode(' ' , $explod1);
    8898    $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];
    89100}     
    90101       
  • wsm-downloader/trunk/readme.txt

    r2406143 r2416440  
    155155Facebook downloader issue has been solved
    156156
     157=1.4.0=
     158Instagram downloader issue has been solved
     159
    157160
    158161
  • wsm-downloader/trunk/wsm_downloader.php

    r2406143 r2416440  
    55 * Author: S.J.Hossseini
    66 * Author URI: https://t.me/ttmga
    7  * Version: 1.3.0
     7 * Version: 1.4.0
    88 * Text Domain: wsm-downloader
    99 * Domain Path: /languages
     
    1616    define('WSMD_PLUGIN_FILE', plugin_dir_path(__FILE__));
    1717    define('WSMD_PLUGIN_URL', plugins_url('', __FILE__));
    18     define('WSMD_SCRIPT_VERSION', '1.3.0');
     18    define('WSMD_SCRIPT_VERSION', '1.4.0');
    1919  }
    2020 
Note: See TracChangeset for help on using the changeset viewer.