Code Monkey home page Code Monkey logo

cuddly-goggles / bridge Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 3.0 70.2 MB

The easiest way to download videos from Youtube, Tumblr, Vine, Facebook, Instagram, Vimeo, Ted and few more sites with your iDevice.

Swift 0.12% Ruby 0.01% C 8.83% Objective-C 0.01% C++ 0.36% Python 23.40% C 9.78% Objective-C 0.01% C++ 0.36% Python 23.40% C 8.79% Objective-C 0.01% C++ 0.36% Python 24.52% JavaScript 0.02% CSS 0.02%
download-videos ios objective-c python python3 swift youtube youtube-dl

bridge's People

Contributors

foobar2016 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bridge's Issues

Python inside build, I got 'ld: framework not found Python'

Hi Aboutsajjad,

For Python inside build, I got this error:
ld: framework not found Python
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have tried 'brew install python' and I got no luck.
Please let me know if I am missing something, thank you.

Server inside build, I got this error "Undefined symbols for architecture x86_64'"

I downloaded serverside.zip yesterday, and ran the "pod install", then download Python-3.5-iOS-support and replace files in project directory. But I still get errors below:

ld: warning: ignoring file /Users/mac/Downloads/Bridge-withServerInside-2/Python.framework/Python, file was built for unsupported file format ( 0x76 0x65 0x72 0x73 0x69 0x6F 0x6E 0x20 0x68 0x74 0x74 0x70 0x73 0x3A 0x2F 0x2F ) which is not the architecture being linked (x86_64): /Users/mac/Downloads/Bridge-withServerInside-2/Python.framework/Python
Undefined symbols for architecture x86_64:
"_Py_SetPythonHome", referenced from:
___24-[ObjcFlask run_server:]_block_invoke in NSObject+ObjcFlask.o
"_PyObject_GetAttrString", referenced from:
___24-[ObjcFlask run_server:]_block_invoke in NSObject+ObjcFlask.o
"_PyImport_ImportModule", referenced from:
___24-[ObjcFlask run_server:]_block_invoke in NSObject+ObjcFlask.o
"_Py_DecodeLocale", referenced from:
___24-[ObjcFlask run_server:]_block_invoke in NSObject+ObjcFlask.o
"_PyObject_CallObject", referenced from:
___24-[ObjcFlask run_server:]_block_invoke in NSObject+ObjcFlask.o
"_Py_Initialize", referenced from:
___24-[ObjcFlask run_server:]_block_invoke in NSObject+ObjcFlask.o
"_PyMem_RawMalloc", referenced from:
___24-[ObjcFlask run_server:]_block_invoke in NSObject+ObjcFlask.o
"_PyEval_InitThreads", referenced from:
___24-[ObjcFlask run_server:]_block_invoke in NSObject+ObjcFlask.o
"_PyObject_CallMethod", referenced from:
___24-[ObjcFlask run_server:]_block_invoke in NSObject+ObjcFlask.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Please help me here. thank you.

This bundle is invalid - The Info.plist file for /Payload/iConnect PLFS.app/Library/Python.framework is missing or could not be read.

Hi, I am trying to update my app on the App Store, but I got this issue, Please help me.

I got the same problem as this link below after I upload to iTunes connect: daltoniam/SwiftHTTP#207

I got email from Apple team as below:

Dear developer,

We have discovered one or more issues with your recent delivery for "PQI iConnect". To process your delivery, the following issues must be corrected:

This bundle is invalid - The Info.plist file for /Payload/iConnect PLFS.app/Library/Python.framework is missing or could not be read.

Invalid Bundle - The bundle at '/Payload/iConnect PLFS.app/Library/Python.framework' does not contain a bundle executable.

Once these issues have been corrected, you can then redeliver the corrected binary.

Regards,

The App Store team

Can not parse Soundcloud, youtube, Facebook, Vine.

Hi Aboutsajjad,

Thank you for making this "Bridge" project, I find it very useful.
But I have tested some sites and it is not working proper.

I have tried to cache these down below
Soundcloud : https://soundcloud.com/nardeen-ibrahim/adele-when-we-were-young
****I got album's jpg file instead if mp3 file.
Youtube: https://www.youtube.com/watch?v=DDWKuo3gXMQ
****I got html ands wf files.
Facebook: https://www.facebook.com/100000024006299/videos/1614327285244723/
****I got pop up message "Nothing found!"
Vine: https://vine.co/v/5nPPVinznwl
****I got an vine home page png file

please let me know if I did not test it right.

NSURLErrorDomain Code=-1004 "Could not connect to the server

Hi I have create my own project and transfer to objective c but I have getting this error below, am I missing something?
Tried these and still not working, Please help
solution 1.
NSAppTransportSecurity

NSAllowsArbitraryLoads

solution 2.
Checked my HTTP/1.1
HTTP/1.1 302 Moved Temporarily
Server: nginx/1.11.13
Date: Thu, 17 Aug 2017 09:46:25 GMT
Content-Type: text/html
Content-Length: 162
Connection: keep-alive
Keep-Alive: timeout=20
Location: https://www.test.com/
X-DIS-Request-ID: 5a24371f22fb184812dd5a1c7a9615c5

Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={NSUnderlyingError=0x608000646390 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, NSErrorFailingURLStringKey=http://127.0.0.1:9191/api/info?flatten=False&url=https%3A//m.youtube.com/watch?v%3DKWGrPNqz4uc, NSErrorFailingURLKey=http://127.0.0.1:9191/api/info?flatten=False&url=https%3A//m.youtube.com/watch?v%3DKWGrPNqz4uc, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=61, NSLocalizedDescription=Could not connect to the server.

I code below
//创建管理者对象
static NSString *baseUrl = @"http://127.0.0.1:9191";

AFHTTPSessionManager *mgr = [AFHTTPSessionManager manager];

//配置参数
NSString *str = [NSString stringWithFormat:@"%@/api/info", baseUrl];
NSMutableDictionary *params = [NSMutableDictionary dictionary];
params[@"url"] = urlString;
params[@"flatten"] = @"False";

//发送请求
[mgr GET:str parameters:params progress:^(NSProgress * _Nonnull downloadProgress) {
    NSLog(@"%@",downloadProgress);
} success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
    NSLog(@"%@",responseObject);
    
    NSInteger statusCode = 0;
    
    if ([task.response isKindOfClass:[NSHTTPURLResponse class]]) {
        NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *)task.response;
        statusCode = httpResponse.statusCode;
    }
    
    switch (statusCode) {
        case 200:
            completion(responseObject, true);
            break;
        case 400:
            [GV showMsg:@"Error" andContent:@"400 Bad Request – invalid query parameters" andCancelTitle:@"OK"];
            completion(nil, false);
            break;
        case 500:
            [GV showMsg:@"Error" andContent:@"500 Internal Server Error – the extraction fails, Please check your URL" andCancelTitle:@"OK"];
            completion(nil, false);
            break;
        default:
            NSLog(@"Default");
            completion(nil, false);
            break;
    }
} failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
    NSLog(@"request failed");
    [GV showMsg:@"Error" andContent:error.localizedDescription andCancelTitle:@"OK"];
    completion(nil, false);
}];

get error

ld: warning: ignoring file /Users/camden/Downloads/Bridge/Frameworks/libPython.a, file was built for unsupported file format ( 0x76 0x65 0x72 0x73 0x69 0x6F 0x6E 0x20 0x68 0x74 0x74 0x70 0x73 0x3A 0x2F 0x2F ) which is not the architecture being linked (arm64): /Users/camden/Downloads/Bridge/Frameworks/libPython.a
Undefined symbols for architecture arm64:
"_Py_DecodeLocale", referenced from:
___24-[youtubedl run_server:]_block_invoke in youtubedl.o
"_Py_Initialize", referenced from:
___24-[youtubedl run_server:]_block_invoke in youtubedl.o
"_PyEval_InitThreads", referenced from:
___24-[youtubedl run_server:]_block_invoke in youtubedl.o
"_PyMem_RawFree", referenced from:
___24-[youtubedl run_server:]_block_invoke in youtubedl.o
"_PyRun_SimpleFileExFlags", referenced from:
___24-[youtubedl run_server:]_block_invoke in youtubedl.o
"_Py_SetPythonHome", referenced from:
___24-[youtubedl run_server:]_block_invoke in youtubedl.o
"_Py_Finalize", referenced from:
___24-[youtubedl run_server:]_block_invoke in youtubedl.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.